summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-02-13 04:45:40 +0000
committerMartin Pool <mbp@samba.org>2003-02-13 04:45:40 +0000
commit404a3f34c879f21bfef66f971d4ccb4c20e87f8e (patch)
treea1c3c2bdd6e4b1d86ed391e1ae48816cdae73441 /source3
parent11f07557bf42d33c1da94a2b8a1a8c07682c3054 (diff)
downloadsamba-404a3f34c879f21bfef66f971d4ccb4c20e87f8e.tar.gz
samba-404a3f34c879f21bfef66f971d4ccb4c20e87f8e.tar.bz2
samba-404a3f34c879f21bfef66f971d4ccb4c20e87f8e.zip
waitstatus audit: Correctly handle case where smbmnt is killed by a
signal. Previously this was incorrectly treated as success. (This used to be commit fe5582c1b2e1c6a6ed5e048dd169a1fcf908069c)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/smbmount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c
index 5d1dc64884..b9d8e7be61 100644
--- a/source3/client/smbmount.c
+++ b/source3/client/smbmount.c
@@ -507,6 +507,9 @@ static void init_mount(void)
fprintf(stderr,"smbmnt failed: %d\n", WEXITSTATUS(status));
/* FIXME: do some proper error handling */
exit(1);
+ } else if (WIFSIGNALLED(status)) {
+ fprintf(stderr, "smbmnt killed by signal %d\n", WTERMSIG(status));
+ exit(1);
}
/* Ok... This is the rubicon for that mount point... At any point