diff options
Diffstat (limited to 'src/sv.c')
-rw-r--r-- | src/sv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sv.c b/src/sv.c index ce5bef5..a9592f4 100644 --- a/src/sv.c +++ b/src/sv.c @@ -215,7 +215,10 @@ int check(char *a) { pid <<=8; pid +=(unsigned char)svstatus[12]; switch (*a) { case 'x': return(0); - case 'u': if (!pid) return(0); if (!checkscript()) return(0); break; + case 'u': + if (!pid || svstatus[19] != 1) return(0); + if (!checkscript()) return(0); + break; case 'd': if (pid) return(0); break; case 'c': if (pid) if (!checkscript()) return(0); break; case 't': |