diff options
author | Eric Andersen | 1999-10-14 22:16:57 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-14 22:16:57 +0000 |
commit | 3c163822d88105450806fdb6a29fdfc2511267d1 (patch) | |
tree | 4c67645bbc6677ad2217da3cdf6c0a748e0ca88d /util-linux | |
parent | 2c1030177e0a6f849ba557400e3e4867de455ce9 (diff) | |
download | busybox-3c163822d88105450806fdb6a29fdfc2511267d1.zip busybox-3c163822d88105450806fdb6a29fdfc2511267d1.tar.gz |
Fixed cp -[aR] and some other stuf.
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mount.c | 18 | ||||
-rw-r--r-- | util-linux/umount.c | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 4e5c074..d7b2682 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -190,7 +190,7 @@ extern int mount_main (int argc, char **argv) } endmntent (mountTable); } - return( TRUE); + exit( TRUE); } @@ -203,7 +203,7 @@ extern int mount_main (int argc, char **argv) case 'o': if (--i == 0) { fprintf (stderr, "%s\n", mount_usage); - return( FALSE); + exit( FALSE); } parse_mount_options (*(++argv), &flags, string_flags); --i; @@ -215,7 +215,7 @@ extern int mount_main (int argc, char **argv) case 't': if (--i == 0) { fprintf (stderr, "%s\n", mount_usage); - return( FALSE); + exit( FALSE); } filesystemType = *(++argv); --i; @@ -231,7 +231,7 @@ extern int mount_main (int argc, char **argv) case 'h': case '-': fprintf (stderr, "%s\n", mount_usage); - return( TRUE); + exit( TRUE); break; } } else { @@ -241,7 +241,7 @@ extern int mount_main (int argc, char **argv) directory=*argv; else { fprintf (stderr, "%s\n", mount_usage); - return( TRUE); + exit( TRUE); } } i--; @@ -254,7 +254,7 @@ extern int mount_main (int argc, char **argv) if (f == NULL) { perror("/etc/fstab"); - return( FALSE); + exit( FALSE); } while ((m = getmntent (f)) != NULL) { // If the file system isn't noauto, and isn't mounted on /, mount @@ -270,12 +270,12 @@ extern int mount_main (int argc, char **argv) endmntent (f); } else { if (device && directory) { - return (mount_one (device, directory, filesystemType, + exit (mount_one (device, directory, filesystemType, flags, string_flags)); } else { fprintf (stderr, "%s\n", mount_usage); - return( FALSE); + exit( FALSE); } } - return( TRUE); + exit( TRUE); } diff --git a/util-linux/umount.c b/util-linux/umount.c index 5274e2f..04cd8a0 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -69,7 +69,7 @@ umount_main(int argc, char * * argv) if (argc < 2) { fprintf(stderr, "Usage: %s", umount_usage); - return(FALSE); + exit(FALSE); } argc--; argv++; @@ -78,7 +78,7 @@ umount_main(int argc, char * * argv) while (**argv == '-') { while (*++(*argv)) switch (**argv) { case 'a': - return umount_all(); + exit ( umount_all() ); break; default: fprintf(stderr, "Usage: %s\n", umount_usage); @@ -86,10 +86,10 @@ umount_main(int argc, char * * argv) } } if ( umount(*argv) == 0 ) - return (TRUE); + exit (TRUE); else { perror("umount"); - return( FALSE); + exit( FALSE); } } |