Mailinglist Archive: yast-devel (177 mails)

< Previous Next >
[yast-devel] [PATCH 11/11] There are exactly 2 arguments during installation
From: Stanislav Visnovsky <visnov@xxxxxxxxxx>

---
core/base/src/scr.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/base/src/scr.cc b/core/base/src/scr.cc
index e75f856..f5114f8 100644
--- a/core/base/src/scr.cc
+++ b/core/base/src/scr.cc
@@ -70,7 +70,7 @@ main (int argc, char **argv)

progname = basename (argv[0]); // get program name

- if (argc > 1) {
+ if (argc != 3) {
print_help ();
exit (YAST_OK);
}
--
1.7.3.2

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
References