summaryrefslogtreecommitdiffstats
path: root/source/client
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-02-11 21:42:20 +0000
committerGerald Carter <jerry@samba.org>2004-02-11 21:42:20 +0000
commit60eb69ff64cc9836072f8f3894e8bc685dc7466a (patch)
tree8bd3eddd84135763b393d065f471c8801185710c /source/client
parent8734d91cd7681219f1389e3c41979028eadbb7fe (diff)
downloadsamba-60eb69ff64cc9836072f8f3894e8bc685dc7466a.tar.gz
samba-60eb69ff64cc9836072f8f3894e8bc685dc7466a.tar.xz
samba-60eb69ff64cc9836072f8f3894e8bc685dc7466a.zip
BUG 900: TAKEDA yasuma <yasuma@miraclelinux.com; fix token processing in cmd_symlink, cmd_link, cmd_chown, cmd_chmod functions
Diffstat (limited to 'source/client')
-rw-r--r--source/client/client.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 22d7260b8f3..fdc6d0d4e19 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -1615,8 +1615,8 @@ static int cmd_link(void)
pstrcpy(src,cur_dir);
pstrcpy(dest,cur_dir);
- if (!next_token(NULL,buf,NULL,sizeof(buf)) ||
- !next_token(NULL,buf2,NULL, sizeof(buf2))) {
+ if (!next_token_nr(NULL,buf,NULL,sizeof(buf)) ||
+ !next_token_nr(NULL,buf2,NULL, sizeof(buf2))) {
d_printf("link <src> <dest>\n");
return 1;
}
@@ -1649,8 +1649,8 @@ static int cmd_symlink(void)
pstrcpy(src,cur_dir);
pstrcpy(dest,cur_dir);
- if (!next_token(NULL,buf,NULL,sizeof(buf)) ||
- !next_token(NULL,buf2,NULL, sizeof(buf2))) {
+ if (!next_token_nr(NULL,buf,NULL,sizeof(buf)) ||
+ !next_token_nr(NULL,buf2,NULL, sizeof(buf2))) {
d_printf("symlink <src> <dest>\n");
return 1;
}
@@ -1684,8 +1684,8 @@ static int cmd_chmod(void)
pstrcpy(src,cur_dir);
- if (!next_token(NULL,buf,NULL,sizeof(buf)) ||
- !next_token(NULL,buf2,NULL, sizeof(buf2))) {
+ if (!next_token_nr(NULL,buf,NULL,sizeof(buf)) ||
+ !next_token_nr(NULL,buf2,NULL, sizeof(buf2))) {
d_printf("chmod mode file\n");
return 1;
}
@@ -1720,9 +1720,9 @@ static int cmd_chown(void)
pstrcpy(src,cur_dir);
- if (!next_token(NULL,buf,NULL,sizeof(buf)) ||
- !next_token(NULL,buf2,NULL, sizeof(buf2)) ||
- !next_token(NULL,buf3,NULL, sizeof(buf3))) {
+ if (!next_token_nr(NULL,buf,NULL,sizeof(buf)) ||
+ !next_token_nr(NULL,buf2,NULL, sizeof(buf2)) ||
+ !next_token_nr(NULL,buf3,NULL, sizeof(buf3))) {
d_printf("chown uid gid file\n");
return 1;
}