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

List:       klik-devel
Subject:    [klik-devel] [klikclient commit] r1668 -
From:       codesite-noreply () google ! com
Date:       2008-08-24 20:35:30
Message-ID: 00163645825a97cd3c04553a9cfd () google ! com
[Download RAW message or body]

Author: lionel.tricon
Date: Sun Aug 24 13:30:29 2008
New Revision: 1668

Modified:
    branches/cristian/fusioniso/fusioniso/src/fs.c

Log:
If a symbolic link point to a file located into the sandbox path, we
need to prefix to prefix path returned by the sandboxing path, else
it doesn't work at all


Modified: branches/cristian/fusioniso/fusioniso/src/fs.c
==============================================================================
--- branches/cristian/fusioniso/fusioniso/src/fs.c	(original)
+++ branches/cristian/fusioniso/fusioniso/src/fs.c	Sun Aug 24 13:30:29 2008
@@ -861,6 +861,13 @@
              retval = readlink(newpath, target, size-1);
              if (retval == -1) return -errno;
              target[retval] = '\0';
+            strcpy(newpath, extern_sandbox_path);
+            strcat(newpath, target);
+            if (extern_sandbox_mounting!=sandbox_none &&  
stat(newpath,&v_stbuf)==0)
+            {
+                strcpy(target, newpath);
+                return 0;
+            }
              return 0;
          }

_______________________________________________
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