PERFORCE change 79865 for review
Robert Watson
rwatson at FreeBSD.org
Sat Jul 9 21:26:36 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=79865
Change 79865 by rwatson at rwatson_zoo on 2005/07/09 21:25:36
Don't use internal UFS mount support, prefer mount_ufs(8), which
uses nmount(2).
Pass -l 'label' down to the real mount implementation if it was
passed to mount(8).
Affected files ...
.. //depot/projects/trustedbsd/sebsd/sbin/mount/mount.c#10 edit
Differences ...
==== //depot/projects/trustedbsd/sebsd/sbin/mount/mount.c#10 (text+ko) ====
@@ -449,6 +449,10 @@
mangle(optbuf, &argc, argv);
argv[argc++] = spec;
argv[argc++] = name;
+ if (ltext != NULL) {
+ argv[argc++] = "-l";
+ argv[argc++] = ltext;
+ }
argv[argc] = NULL;
if (debug) {
@@ -465,9 +469,6 @@
free(optbuf);
return (1);
case 0: /* Child. */
- if (strcmp(vfstype, "ufs") == 0)
- exit(mount_ufs(argc, (char * const *) argv, ltext));
-
/* Go find an executable. */
execvP(execname, _PATH_SYSPATH, (char * const *)argv);
if (errno == ENOENT) {
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list