s3:quota: don't add the string '"' into the argument list
authorBjörn Jacke <bj@sernet.de>
Fri, 7 Sep 2012 22:30:59 +0000 (00:30 +0200)
committerBjoern Jacke <bj@sernet.de>
Sat, 8 Sep 2012 01:13:13 +0000 (03:13 +0200)
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 <bj@sernet.de>
Autobuild-Date(master): Sat Sep  8 03:13:13 CEST 2012 on sn-devel-104

source3/lib/sysquotas.c

index 76f66a779e0e9713e04c1f61b0e52c7653bb725f..c531666292dc23caa3767ae7c1460b696ba46b9a 100644 (file)
@@ -208,7 +208,7 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
                                return -1;
                }
 
                                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;
                }
                        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,
                }
 
                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,
                        "%u %llu %llu "
                        "%llu %llu %llu ",
                        set_quota_command, path, qtype, _id, dp->qflags,