summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-09-26 09:06:51 +0000
committerAndrew Tridgell <tridge@samba.org>1997-09-26 09:06:51 +0000
commit5a7b3294dbbe88f0d5da25a74b8112fc6c70af1f (patch)
tree66052b430a43a0b222700b2724d0a3431657f093 /source3
parent776674812b426609958f5802c1573ba812f7426c (diff)
downloadsamba-5a7b3294dbbe88f0d5da25a74b8112fc6c70af1f.tar.gz
samba-5a7b3294dbbe88f0d5da25a74b8112fc6c70af1f.tar.bz2
samba-5a7b3294dbbe88f0d5da25a74b8112fc6c70af1f.zip
add error string reporting to clitar
(This used to be commit 2c5587a6fe425b1cc57cf28e92e77ba84f08ce33)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/clitar.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 344263967f..c085cd9e5a 100644
--- a/source3/client/clitar.c
+++ b/source3/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);
}
}