From: Björn Jacke Date: Fri, 7 Sep 2012 22:30:59 +0000 (+0200) Subject: s3:quota: don't add the string '"' into the argument list X-Git-Tag: samba-4.0.0rc1~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c853b68229d8c8eaa6f4ae1828621fad533bb8e3;p=thirdparty%2Fsamba.git s3:quota: don't add the string '"' into the argument list this is not used to quote or anything else. This is mainly causing work for the script writer who has to remove the quote stings again :-) Autobuild-User(master): Björn Jacke Autobuild-Date(master): Sat Sep 8 03:13:13 CEST 2012 on sn-devel-104 --- diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index 76f66a779e0..c531666292d 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -208,7 +208,7 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t return -1; } - if (asprintf(&syscmd, "%s \"%s\" %d %d", + if (asprintf(&syscmd, "%s %s %d %d", get_quota_command, path, qtype, _id) < 0) { return -1; } @@ -351,7 +351,7 @@ static int command_set_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t } if (asprintf(&syscmd, - "%s \"%s\" %d %d " + "%s %s %d %d " "%u %llu %llu " "%llu %llu %llu ", set_quota_command, path, qtype, _id, dp->qflags,