[Frugalware-git] fw32: fw32.c: adjust fw32_run

James Buren ryuo at frugalware.org
Thu Nov 3 14:00:02 CET 2011


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=04b25dde55584ba2c2c790a6630c1e78edcde8f8

commit 04b25dde55584ba2c2c790a6630c1e78edcde8f8
Author: James Buren <ryuo at frugalware.org>
Date:   Thu Nov 3 08:00:48 2011 -0500

fw32.c: adjust fw32_run

diff --git a/fw32.c b/fw32.c
index de3625c..f2c0612 100644
--- a/fw32.c
+++ b/fw32.c
@@ -424,11 +424,6 @@ fw32_run(int i,char **args1)
{
char cwd[PATH_MAX];
struct passwd *pwd;
-  char *args2[] =
-  {
-    "-l",
-    0
-  };

if(!getcwd(cwd,sizeof cwd))
error("getcwd: %s\n",strerror(errno));
@@ -439,7 +434,7 @@ fw32_run(int i,char **args1)
error("Failed to retrieve password entry.\n");

if(i < 1)
-    run(pwd->pw_shell,cwd,true,args2);
+    run(pwd->pw_shell,cwd,true,args1);
else
run(args1[0],cwd,true,args1+1);
}


More information about the Frugalware-git mailing list