diff options
author | Tim Potter <tpot@samba.org> | 2000-02-03 05:10:09 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-02-03 05:10:09 +0000 |
commit | b55f63da7e6a3c306ce668c77ed63a41d33240db (patch) | |
tree | f4bafd638e73a5c3c24e9ab9f4f1c88ee0547196 /source/lib/doscalls.c | |
parent | 4c14a343d10bbddd69a1dc5abc9d4f64cf75dacc (diff) | |
download | samba-b55f63da7e6a3c306ce668c77ed63a41d33240db.tar.gz samba-b55f63da7e6a3c306ce668c77ed63a41d33240db.tar.xz samba-b55f63da7e6a3c306ce668c77ed63a41d33240db.zip |
Comments to use vfs_* functions instead of dos_* unless really
accessing files on local disk.
Diffstat (limited to 'source/lib/doscalls.c')
-rw-r--r-- | source/lib/doscalls.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/source/lib/doscalls.c b/source/lib/doscalls.c index 4ce84cbca24..2bd68d30974 100644 --- a/source/lib/doscalls.c +++ b/source/lib/doscalls.c @@ -52,18 +52,23 @@ int dos_open(char *fname,int flags,mode_t mode) } /******************************************************************* - Opendir() wrapper that calls dos_to_unix. + Opendir() wrapper that calls dos_to_unix. Should use the + vfs_ops->opendir() function instead. ********************************************************************/ +#if 0 DIR *dos_opendir(char *dname) { return(opendir(dos_to_unix(dname,False))); } +#endif /******************************************************************* - Readdirname() wrapper that calls unix_to_dos. + Readdirname() wrapper that calls unix_to_dos. Should use the + vfs_readdirname() function instead. ********************************************************************/ +#if 0 char *dos_readdirname(DIR *p) { char *dname = readdirname(p); @@ -74,6 +79,7 @@ char *dos_readdirname(DIR *p) unix_to_dos(dname, True); return(dname); } +#endif /******************************************************************* A chown() wrapper that calls dos_to_unix. @@ -106,6 +112,8 @@ int dos_lstat(char *fname,SMB_STRUCT_STAT *sbuf) Mkdir() that calls dos_to_unix. Cope with UNIXes that don't allow high order mode bits on mkdir. Patch from gcarter@lanier.com. + Don't use this call unless you really want to access a file on + disk. Use the vfs_ops.mkdir() function instead. ********************************************************************/ int dos_mkdir(char *dname,mode_t mode) @@ -289,13 +297,15 @@ char *dos_getwd(char *unix_path) } /******************************************************************* - Check if a DOS file exists. + Check if a DOS file exists. Use vfs_file_exist function instead. ********************************************************************/ +#if 0 BOOL dos_file_exist(char *fname,SMB_STRUCT_STAT *sbuf) { return file_exist(dos_to_unix(fname, False), sbuf); } +#endif /******************************************************************* Check if a DOS directory exists. |