[prev in list] [next in list] [prev in thread] [next in thread] 

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r1543 -
From:       codesite-noreply () google ! com
Date:       2008-05-11 22:39:55
Message-ID: 0016e644cf122f7efe044cfc1c7c () google ! com
[Download RAW message or body]

Author: lionel.tricon
Date: Sun May 11 15:39:08 2008
New Revision: 1543

Modified:
   trunk/client/trunk/kfakechroot/src/libfakechroot.c

Log:
Ok, we can manage the value of the $0 variable from inside a script
That's a good news since some edge effect have been noticed (picasa)


Modified: trunk/client/trunk/kfakechroot/src/libfakechroot.c
==============================================================================
--- trunk/client/trunk/kfakechroot/src/libfakechroot.c	(original)
+++ trunk/client/trunk/kfakechroot/src/libfakechroot.c	Sun May 11 
15:39:08 2008
@@ -1397,7 +1397,8 @@
     if (strncmp(filename,"./",2)==0 && next_getcwd(cwd,FAKECHROOT_MAXPATH)!=NULL)
     {
         strcat(cwd, &(filename[1]));
-        newargv[n++] = cwd;
+        if (strstr(cwd,getenv("FAKECHROOT_BASE")) == NULL) 
newargv[n++] = cwd;
+        else newargv[n++] = &(cwd[strlen(getenv("FAKECHROOT_BASE"))]);
     }
     else
     {
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic