summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-13 09:14:40 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-13 09:14:40 +0000
commit04538bfb6c0196bb0a121ad2caead5448e1186da (patch)
treea984f47c72352a23b90600b55d00be5651d57e9d /source3/client
parent35150ef8b50efcd871ec00dee586e5d15905a414 (diff)
downloadsamba-04538bfb6c0196bb0a121ad2caead5448e1186da.tar.gz
samba-04538bfb6c0196bb0a121ad2caead5448e1186da.tar.bz2
samba-04538bfb6c0196bb0a121ad2caead5448e1186da.zip
Make smbmnt a standalone program from a linker point of view. Hopefully this
will make it easier to prove this package correct from an audit point of view. smbumount to follow, but it uses pstrcpy() so I'll need to decide what to do with that. Andrew Bartlett (This used to be commit 62c56f97248109ca80cc155974584bea9704cd50)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbmnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c
index 36248987b1..ba2b1e9435 100644
--- a/source3/client/smbmnt.c
+++ b/source3/client/smbmnt.c
@@ -111,13 +111,13 @@ fullpath(const char *p)
OK then we change into that directory - this prevents race conditions */
static int mount_ok(char *mount_point)
{
- SMB_STRUCT_STAT st;
+ struct stat st;
if (chdir(mount_point) != 0) {
return -1;
}
- if (sys_stat(".", &st) != 0) {
+ if (stat(".", &st) != 0) {
return -1;
}