set correct options oreder for mkdir call

This commit is contained in:
Max N. Boyarov 2014-06-25 23:08:02 +03:00
parent 9325df9e52
commit 59e7a8ddaf

View File

@ -341,7 +341,7 @@ int session_set_inbound(void)
} */
log("inbound: %s", buf);
state.inbound = (char*)xstrcpy(buf);
snprintf( buf, PATH_MAX+30, "/bin/mkdir -p %s -m 700", state.inbound ); /* 30 additional chars allowed */
snprintf( buf, PATH_MAX+30, "/bin/mkdir -p -m 700 %s", state.inbound ); /* 30 additional chars allowed */
system( buf );
}
else