anitazha / rpms / systemd

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