diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-09-26 09:06:51 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-09-26 09:06:51 +0000 |
commit | 2c5587a6fe425b1cc57cf28e92e77ba84f08ce33 (patch) | |
tree | 2d26bcb097099c0bf03a003725d7b4071e846772 /source | |
parent | ce9cdc2f6175e4a6195f8875360cd945ae60052c (diff) | |
download | samba-2c5587a6fe425b1cc57cf28e92e77ba84f08ce33.tar.gz samba-2c5587a6fe425b1cc57cf28e92e77ba84f08ce33.tar.xz samba-2c5587a6fe425b1cc57cf28e92e77ba84f08ce33.zip |
add error string reporting to clitar
Diffstat (limited to 'source')
-rw-r--r-- | source/client/clitar.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/client/clitar.c b/source/client/clitar.c index 344263967fd..c085cd9e5a1 100644 --- a/source/client/clitar.c +++ b/source/client/clitar.c @@ -1074,7 +1074,7 @@ static void do_atar(char *rname,char *lname,file_info *finfo1) * write out in 512 byte intervals */ if (dotarbuf(tarhandle,dataptr,datalen) != datalen) { - DEBUG(0,("Error writing local file\n")); + DEBUG(0,("Error writing to tar file - %s\n", strerror(errno))); break; } @@ -1094,7 +1094,7 @@ static void do_atar(char *rname,char *lname,file_info *finfo1) { DEBUG(0, ("Didn't get entire file. size=%d, nread=%d\n", finfo.size, nread)); if (padit(inbuf, BUFFER_SIZE, finfo.size - nread)) - DEBUG(0,("Error writing local file\n")); + DEBUG(0,("Error writing tar file - %s\n", strerror(errno))); } /* round tar file to nearest block */ @@ -1761,7 +1761,8 @@ int tar_parseargs(int argc, char *argv[], char *Optarg, int Optind) if ((tar_type=='x' && (tarhandle = open(argv[Optind], O_RDONLY)) == -1) || (tar_type=='c' && (tarhandle=creat(argv[Optind], 0644)) < 0)) { - DEBUG(0,("Error opening local file %s\n",argv[Optind])); + DEBUG(0,("Error opening local file %s - %s\n", + argv[Optind], strerror(errno))); return(0); } } |