From d3aceae9f72d6175f53585ed58f4dc725349ebcc Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Fri, 21 Jun 2002 16:01:53 +0000 Subject: [PATCH] * samba/lib/system.c (sys_ftruncate): Commented out. * samba/lib/util.c (set_filelen): Likewise. (setbuffer): Likewise. --- vfs/ChangeLog | 4 ++++ vfs/samba/lib/system.c | 4 ++-- vfs/samba/lib/util.c | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 2a55e2731..6f475616f 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -11,6 +11,10 @@ (smbfs_stat): Remove code duplication. (smbfs_lstat): Define as smbfs_stat. + * samba/lib/system.c (sys_ftruncate): Commented out. + * samba/lib/util.c (set_filelen): Likewise. + (setbuffer): Likewise. + 2002-06-06 Andrew V. Samoilov * cpio.c (cpio_read_oldc_head): Use char[] for buf instead diff --git a/vfs/samba/lib/system.c b/vfs/samba/lib/system.c index 470fb835a..011bedc07 100644 --- a/vfs/samba/lib/system.c +++ b/vfs/samba/lib/system.c @@ -203,12 +203,12 @@ int sys_lstat(const char *fname,SMB_STRUCT_STAT *sbuf) /******************************************************************* An ftruncate() wrapper that will deal with 64 bit filesizes. ********************************************************************/ - +#if 0 int sys_ftruncate(int fd, SMB_OFF_T offset) { return ftruncate(fd, offset); } - +#endif /******************************************************************* An lseek() wrapper that will deal with 64 bit filesizes. ********************************************************************/ diff --git a/vfs/samba/lib/util.c b/vfs/samba/lib/util.c index 03e08cab4..82dbccc96 100644 --- a/vfs/samba/lib/util.c +++ b/vfs/samba/lib/util.c @@ -1594,7 +1594,7 @@ BOOL yesno(char *p) return(False); } -#endif + /**************************************************************************** set the length of a file from a filedescriptor. @@ -1654,7 +1654,7 @@ this is a version of setbuffer() for those machines that only have setvbuf setvbuf(f,buf,_IOFBF,bufsize); } #endif - +#endif /* 0 */ /**************************************************************************** parse out a filename from a path name. Assumes dos style filenames.