mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
remove "discards qualifier" erro by not potentially writing to
a const *.
This commit is contained in:
parent
db3442f54d
commit
bc9f367b48
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91334
@ -339,15 +339,18 @@ linprocfs_domtab(PFS_FILL_ARGS)
|
||||
{
|
||||
struct nameidata nd;
|
||||
struct mount *mp;
|
||||
char *lep, *flep, *mntto, *mntfrom, *fstype;
|
||||
const char *lep;
|
||||
char *dlep, *flep, *mntto, *mntfrom, *fstype;
|
||||
size_t lep_len;
|
||||
int error;
|
||||
|
||||
/* resolve symlinks etc. in the emulation tree prefix */
|
||||
NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, linux_emul_path, td);
|
||||
flep = NULL;
|
||||
if (namei(&nd) != 0 || vn_fullpath(td, nd.ni_vp, &lep, &flep) == -1)
|
||||
if (namei(&nd) != 0 || vn_fullpath(td, nd.ni_vp, &dlep, &flep) == -1)
|
||||
lep = linux_emul_path;
|
||||
else
|
||||
lep = dlep;
|
||||
lep_len = strlen(lep);
|
||||
|
||||
mtx_lock(&mountlist_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user