summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-02-11 15:39:11 +0000
committerGerald Carter <jerry@samba.org>2004-02-11 15:39:11 +0000
commit899a09d713d42ca7ffcf78f828e1bac558d54332 (patch)
treec137639e1792237cfcddcf0962e6659acd9ef5de /source3/client
parentdad12f62ff1828fc4ee05cae2e2b27931e1d396b (diff)
downloadsamba-899a09d713d42ca7ffcf78f828e1bac558d54332.tar.gz
samba-899a09d713d42ca7ffcf78f828e1bac558d54332.tar.bz2
samba-899a09d713d42ca7ffcf78f828e1bac558d54332.zip
BUG 900: TAKEDA yasuma <yasuma@miraclelinux.com; fix token processing in cmd_symlink, cmd_link, cmd_chown, cmd_chmod functions
(This used to be commit ab19b6b4dead0a53fa71c4e20e43f90b1d374817)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 22d7260b8f..fdc6d0d4e1 100644
--- a/source3/client/client.c
+++ b/source3/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;
}