FreeBSD Bugzilla – Attachment 36498 Details for
Bug 58483
[patch] mount(8): allow type special or node relative names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 844 bytes, created by
Oleg Karachevtsev
on 2003-10-24 12:00:34 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Oleg Karachevtsev
Created:
2003-10-24 12:00:34 UTC
Size:
844 bytes
patch
obsolete
>Index: mount.c >=================================================================== >RCS file: /home/ncvs/src/sbin/mount/mount.c,v >retrieving revision 1.54 >diff -u -r1.54 mount.c >--- mount.c 7 Aug 2003 04:51:41 -0000 1.54 >+++ mount.c 24 Oct 2003 09:43:17 -0000 >@@ -136,6 +136,7 @@ > pid_t pid; > int all, ch, i, init_flags, mntsize, rval, have_fstab; > char *cp, *ep, *options; >+ char mntnamereal[MAXPATHLEN + 1]; > > all = init_flags = 0; > options = NULL; >@@ -272,8 +273,9 @@ > break; > } > rmslashes(*argv, *argv); >- if ((fs = getfsfile(*argv)) == NULL && >- (fs = getfsspec(*argv)) == NULL) >+ if (realpath(*argv,mntnamereal) == NULL || >+ ((fs = getfsfile(mntnamereal)) == NULL && >+ (fs = getfsspec(mntnamereal)) == NULL)) > errx(1, "%s: unknown special file or file system", > *argv); > if (BADTYPE(fs->fs_type))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58483
: 36498