diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-01 20:11:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-01 20:11:54 +0000 |
commit | 18556274139cc5a00593471bd745354d98a35303 (patch) | |
tree | b10b897359416e4c67bcaff75a5f21eefe20c996 /source3/client/smbmnt.c | |
parent | 6f53e2097d60d4b67f0859065cfa0fe01d63e28f (diff) | |
download | samba-18556274139cc5a00593471bd745354d98a35303.tar.gz samba-18556274139cc5a00593471bd745354d98a35303.tar.bz2 samba-18556274139cc5a00593471bd745354d98a35303.zip |
More abstraction of file system data types, to move to a 64
bit file interface for the NT SMB's.
Created a new define, SMB_STRUCT_STAT that currently is
defined to be struct stat - this wil change to a user
defined type containing 64 bit info when the correct
wrappers are written for 64 bit stat(), fstat() and lstat()
calls.
Also changed all sys_xxxx() calls that were previously just
wrappers to the same call prefixed by a dos_to_unix() call
into dos_xxxx() calls. This makes it explicit when a pathname
translation is being done, and when it is not.
Now, all sys_xxx() calls are meant to be wrappers to mask
OS differences, and not silently converting filenames on
the fly.
Jeremy.
(This used to be commit 28aa182dbffaa4ffd86047e608400de4b26e80eb)
Diffstat (limited to 'source3/client/smbmnt.c')
-rw-r--r-- | source3/client/smbmnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c index 9f8eea1cac..9fb0dba99d 100644 --- a/source3/client/smbmnt.c +++ b/source3/client/smbmnt.c @@ -138,7 +138,7 @@ fullpath(const char *p) /* Check whether user is allowed to mount on the specified mount point */ static int -mount_ok(struct stat *st) +mount_ok(SMB_STRUCT_STAT *st) { if (!S_ISDIR(st->st_mode)) { @@ -165,7 +165,7 @@ main(int argc, char *argv[]) int fd, um; unsigned int flags; struct smb_mount_data data; - struct stat st; + SMB_STRUCT_STAT st; struct mntent ment; progname = argv[0]; |