X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=8c791ae74ebdd173f5c59773b0b1bd6f1eae196c;hp=77908bf09e8fc09b073e48372ff6749a764de118;hb=db0d7536fd2edfd506acc36428ccf2a48fa246f2;hpb=c4d3a91f6a8591a231c05241eee6408bbc4be23b diff --git a/command.c b/command.c index 77908bf0..8c791ae7 100644 --- a/command.c +++ b/command.c @@ -74,12 +74,12 @@ static char *vss_status_tohuman(unsigned int flags) */ char *cmd_perms_itohuman(unsigned int perms) { - char *msg = para_malloc(7 * sizeof(char)); + char *msg = para_malloc(5 * sizeof(char)); - msg[0] = perms & DB_READ? 'd' : '-'; - msg[1] = perms & DB_WRITE? 'D' : '-'; - msg[2] = perms & VSS_READ? 'a' : '-'; - msg[3] = perms & VSS_WRITE? 'A' : '-'; + msg[0] = perms & DB_READ? 'a' : '-'; + msg[1] = perms & DB_WRITE? 'A' : '-'; + msg[2] = perms & VSS_READ? 'v' : '-'; + msg[3] = perms & VSS_WRITE? 'V' : '-'; msg[4] = '\0'; return msg; }