projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c0d311
)
Fix segfault on `mount -t nfs' reported by Gratien D'haese.
author
Matt Kraai
<kraai@debian.org>
Tue, 17 Apr 2001 04:22:22 +0000
(
04:22
-0000)
committer
Matt Kraai
<kraai@debian.org>
Tue, 17 Apr 2001 04:22:22 +0000
(
04:22
-0000)
mount.c
patch
|
blob
|
history
util-linux/mount.c
patch
|
blob
|
history
diff --git
a/mount.c
b/mount.c
index 5b6ec1e71ff64c834e8858878f84dfe42666eb0c..d1568d8031a05b16464f2393c13f5f2ece53c899 100644
(file)
--- a/
mount.c
+++ b/
mount.c
@@
-405,6
+405,9
@@
extern int mount_main(int argc, char **argv)
argv++;
}
+ if (device == NULL && directory == NULL)
+ goto goodbye;
+
if (all == TRUE || directory == NULL) {
struct mntent *m;
FILE *f = setmntent("/etc/fstab", "r");
diff --git
a/util-linux/mount.c
b/util-linux/mount.c
index 5b6ec1e71ff64c834e8858878f84dfe42666eb0c..d1568d8031a05b16464f2393c13f5f2ece53c899 100644
(file)
--- a/
util-linux/mount.c
+++ b/
util-linux/mount.c
@@
-405,6
+405,9
@@
extern int mount_main(int argc, char **argv)
argv++;
}
+ if (device == NULL && directory == NULL)
+ goto goodbye;
+
if (all == TRUE || directory == NULL) {
struct mntent *m;
FILE *f = setmntent("/etc/fstab", "r");