diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-17 20:50:07 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-17 20:50:07 +0000 |
commit | 18ff93a9abbf68ee8c59c0af3e57c63e4a015dac (patch) | |
tree | 4ac25cab78948bd6a334a552d884869443d2d8c2 /source/client/clitar.c | |
parent | 2a98135bbc759ab334d76cce98ea673871445db1 (diff) | |
download | samba-18ff93a9abbf68ee8c59c0af3e57c63e4a015dac.tar.gz samba-18ff93a9abbf68ee8c59c0af3e57c63e4a015dac.tar.xz samba-18ff93a9abbf68ee8c59c0af3e57c63e4a015dac.zip |
Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.
Tidied up some of the mess (no other word for it). Still doesn't
compile cleanly. There are calls with incorrect parameters that
don't seem to be doing the right thing.
This code still needs surgery :-(.
Jeremy.
Diffstat (limited to 'source/client/clitar.c')
-rw-r--r-- | source/client/clitar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/clitar.c b/source/client/clitar.c index e7915d10660..a2b23817f5c 100644 --- a/source/client/clitar.c +++ b/source/client/clitar.c @@ -1539,7 +1539,7 @@ static int read_inclusion_file(char *filename) clipn = 0; buf[MAXPATHLEN] = '\0'; /* guarantee null-termination */ - if ((inclusion = fopen(filename, "r")) == NULL) { + if ((inclusion = sys_fopen(filename, "r")) == NULL) { /* XXX It would be better to include a reason for failure, but without * autoconf, it's hard to use strerror, sys_errlist, etc. */ @@ -1823,8 +1823,8 @@ int tar_parseargs(int argc, char *argv[], char *Optarg, int Optind) } tarhandle=-1; } else - if ((tar_type=='x' && (tarhandle = open(argv[Optind], O_RDONLY)) == -1) - || (tar_type=='c' && (tarhandle=creat(argv[Optind], 0644)) < 0)) + if ((tar_type=='x' && (tarhandle = sys_open(argv[Optind], O_RDONLY, 0)) == -1) + || (tar_type=='c' && (tarhandle=sys_creat(argv[Optind], 0644)) < 0)) { DEBUG(0,("Error opening local file %s - %s\n", argv[Optind], strerror(errno))); |