diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-12 09:40:54 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-13 14:10:35 +0100 |
commit | b4d6afd9f61013705b8b6cc9cb9998ee9fed451e (patch) | |
tree | 4e73facbd20d9f22ae900adcbbf3796bb03a449f /freebsd/sbin/ifconfig | |
parent | NETISR(9): Fix NULL pointer access (diff) | |
download | rtems-libbsd-b4d6afd9f61013705b8b6cc9cb9998ee9fed451e.tar.bz2 |
commands: Use REQUIRE_ORDER option processing
Diffstat (limited to 'freebsd/sbin/ifconfig')
-rw-r--r-- | freebsd/sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/sbin/ifconfig/ifconfig.c b/freebsd/sbin/ifconfig/ifconfig.c index 6c7b8a36..43b8ea42 100644 --- a/freebsd/sbin/ifconfig/ifconfig.c +++ b/freebsd/sbin/ifconfig/ifconfig.c @@ -214,7 +214,11 @@ main(int argc, char *argv[]) all = downonly = uponly = namesonly = noload = verbose = 0; /* Parse leading line options */ +#ifndef __rtems__ strlcpy(options, "adklmnuv", sizeof(options)); +#else /* __rtems__ */ + strlcpy(options, "+adklmnuv", sizeof(options)); +#endif /* __rtems__ */ for (p = opts; p != NULL; p = p->next) strlcat(options, p->opt, sizeof(options)); while ((c = getopt(argc, argv, options)) != -1) { |