aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall/sismain.cpp
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-28 09:47:25 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-28 09:47:25 +0000
commit81e05de4391c11fad7faf9bc164f92e128a49d25 (patch)
treed69f635c5986154f4e629a8f16de42676ccbbf11 /sisinstall/sismain.cpp
parent1d9b2e0e156f9a58bd642b9f9e8b2a08e768f5ed (diff)
downloadplptools-81e05de4391c11fad7faf9bc164f92e128a49d25.tar.gz
plptools-81e05de4391c11fad7faf9bc164f92e128a49d25.tar.bz2
plptools-81e05de4391c11fad7faf9bc164f92e128a49d25.zip
Some buffer overrun checks.
Removed the --force flag.
Diffstat (limited to 'sisinstall/sismain.cpp')
-rw-r--r--sisinstall/sismain.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/sisinstall/sismain.cpp b/sisinstall/sismain.cpp
index 21d6f55..6fbe7f8 100644
--- a/sisinstall/sismain.cpp
+++ b/sisinstall/sismain.cpp
@@ -27,7 +27,6 @@ static struct option opts[] = {
{ "version", no_argument, 0, 'V' },
{ "loglevel", required_argument, 0, 'l' },
{ "dry-run", no_argument, 0, 'n' },
- { "force", no_argument, 0, 'f' },
{ NULL, 0, 0, 0 },
};
@@ -42,7 +41,6 @@ void printHelp()
" -V, --version Print version and exit.\n"
" -l, --loglevel=LEVEL Set the log level, by default 0.\n"
" -n, --dry-run Just parse file file.\n"
- " -f, --force Ignore any earlier installations.\n"
));
}
@@ -51,7 +49,6 @@ void main(int argc, char* argv[])
char* filename = 0;
char option;
bool dryrun = false;
- bool forced = false;
#ifdef LC_ALL
setlocale(LC_ALL, "");
@@ -60,7 +57,7 @@ void main(int argc, char* argv[])
while (1)
{
- option = getopt_long(argc, argv, "fhnl:", opts, NULL);
+ option = getopt_long(argc, argv, "hnl:", opts, NULL);
if (option == -1)
break;
switch (option)
@@ -69,9 +66,6 @@ void main(int argc, char* argv[])
case '?':
printHelp();
exit(0);
- case 'f':
- forced = true;
- break;
case 'l':
logLevel = atoi(optarg);
break;
@@ -118,7 +112,6 @@ void main(int argc, char* argv[])
{
SISInstaller installer;
installer.setPsion(psion);
- installer.setForced(forced);
installer.run(&sisFile, buf, len);
}
}