-
Notifications
You must be signed in to change notification settings - Fork 16
/
lhasa.patch
45 lines (38 loc) · 1.05 KB
/
lhasa.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff '--color=auto' -Naur lhasa-0.4.0-orig/lib/lha_arch_unix.c lhasa-0.4.0/lib/lha_arch_unix.c
--- lhasa-0.4.0-orig/lib/lha_arch_unix.c 2023-07-27 22:29:46.420748564 +0200
+++ lhasa-0.4.0/lib/lha_arch_unix.c 2023-07-27 22:35:08.186414880 +0200
@@ -58,12 +58,12 @@
int lha_arch_chown(char *filename, int unix_uid, int unix_gid)
{
- return chown(filename, unix_uid, unix_gid) == 0;
+ return 0;
}
int lha_arch_chmod(char *filename, int unix_perms)
{
- return chmod(filename, unix_perms) == 0;
+ return 0;
}
int lha_arch_utime(char *filename, unsigned int timestamp)
@@ -101,7 +101,7 @@
}
// Set owner and group.
-
+#if 0
if (unix_uid >= 0) {
if (fchown(fileno, unix_uid, unix_gid) != 0) {
// On most Unix systems, only root can change
@@ -117,6 +117,7 @@
return NULL; */
}
}
+#endif
// Set file permissions.
// File permissions must be set *after* owner and group have
@@ -165,8 +166,7 @@
int lha_arch_symlink(char *path, char *target)
{
- unlink(path);
- return symlink(target, path) == 0;
+ return 0;
}
#endif /* LHA_ARCH_UNIX */