repo.or.cz
/
wine-gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 460926 A11y hierachy is broken on Ubuntu 8.10 (GNOME 2.24), r=Evan.Yan sr=roc
[wine-gecko.git]
/
build
/
macosx
/
permissions
/
chown_revert.c
blob
c1ea86b975142755afe78d8510dd09653ec526d8
1
#include <unistd.h>
2
#include <stdio.h>
3
4
int
main
(
int
argc
,
char
**
argv
)
5
{
6
if
(
argc
!=
2
)
7
return
1
;
8
9
uid_t realuser
=
getuid
();
10
char
uidstring
[
20
];
11
snprintf
(
uidstring
,
19
,
"%i"
,
realuser
);
12
uidstring
[
19
] =
'\0'
;
13
14
return
execl
(
"/usr/sbin/chown"
,
15
"/usr/sbin/chown"
,
"-R"
,
"-h"
,
uidstring
,
argv
[
1
], (
char
*)
0
);
16
}