summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/main_time.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-18 07:35:30 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-20 10:30:26 +0100
commit7eada71e1b8e707d5b97d4d0cf7d2ca73013e403 (patch)
tree0595921de0173366d2bfb5331be1fb89ab1001ca /cpukit/libmisc/shell/main_time.c
parentshell: Inherit UID and GID if no login check (diff)
downloadrtems-7eada71e1b8e707d5b97d4d0cf7d2ca73013e403.tar.bz2
shell: Add mode, UID and GID to shell commands
Use this information to determine if a command is visible to the current user and if the current user is allowed to execute this command.
Diffstat (limited to 'cpukit/libmisc/shell/main_time.c')
-rw-r--r--cpukit/libmisc/shell/main_time.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/cpukit/libmisc/shell/main_time.c b/cpukit/libmisc/shell/main_time.c
index 401186aeb4..5ea1bf7498 100644
--- a/cpukit/libmisc/shell/main_time.c
+++ b/cpukit/libmisc/shell/main_time.c
@@ -75,10 +75,9 @@ static int rtems_shell_main_time(
}
rtems_shell_cmd_t rtems_shell_TIME_Command = {
- "time", /* name */
- "time command [arguments...]", /* usage */
- "misc", /* topic */
- rtems_shell_main_time, /* command */
- NULL, /* alias */
- NULL /* next */
+ .name = "time",
+ .usage = "time command [arguments...]",
+ .topic = "misc",
+ .command = rtems_shell_main_time,
+ .mode = S_IRUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH
};