ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
572a44
From 6a4da7d980bf91207d07e2a7b1c4d1d2fe59e3e8 Mon Sep 17 00:00:00 2001
572a44
From: =?UTF-8?q?Mantas=20Mikul=C4=97nas?= <grawity@gmail.com>
572a44
Date: Wed, 13 Nov 2013 13:36:16 +0200
572a44
Subject: [PATCH] activate: fix crash when -s is passed
572a44
572a44
getopt_long() was told to accept -s which was never implemented.
572a44
---
572a44
 src/activate/activate.c | 2 +-
572a44
 1 file changed, 1 insertion(+), 1 deletion(-)
572a44
572a44
diff --git a/src/activate/activate.c b/src/activate/activate.c
572a44
index 83d25b1..535b330 100644
572a44
--- a/src/activate/activate.c
572a44
+++ b/src/activate/activate.c
572a44
@@ -344,7 +344,7 @@ static int parse_argv(int argc, char *argv[]) {
572a44
         assert(argc >= 0);
572a44
         assert(argv);
572a44
 
572a44
-        while ((c = getopt_long(argc, argv, "+hl:saE:", options, NULL)) >= 0)
572a44
+        while ((c = getopt_long(argc, argv, "+hl:aE:", options, NULL)) >= 0)
572a44
                 switch(c) {
572a44
                 case 'h':
572a44
                         help();