diff options
author | kx <kx@radix.pro> | 2022-09-28 19:30:56 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2022-09-28 19:30:56 +0300 |
commit | 2aa8d8ccf0e3e82bd462d17dbfb44e4f58e3ba20 (patch) | |
tree | c1ae0aea828cec52b0a7ce5bc5aafb8375de10f1 | |
parent | 13ea0c85cfe0c7b9880d5ddf2abe6409cedf9f22 (diff) | |
download | sila-shell-2aa8d8ccf0e3e82bd462d17dbfb44e4f58e3ba20.tar.xz |
Use full path to system's commands instead of set PATH for priv-admin users
-rw-r--r-- | src/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c index c5b8332..af5d649 100644 --- a/src/shell.c +++ b/src/shell.c @@ -156,6 +156,6 @@ int com_poweroff( char *arg ) if( !arg ) arg = ""; - sprintf( syscom, "poweroff %s", arg ); + sprintf( syscom, "/sbin/poweroff %s", arg ); return( system( syscom ) ); } |