summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-04-20 14:35:27 +0200
committerDanny Baumann <dannybaumann@web.de>2009-04-20 14:35:27 +0200
commit1904467e3614839c2e24142a09291c2d8cf12388 (patch)
treeebba4b6243707725626dd8fee5c7522c2b05d566
parent308593faadf6a364789bf2f6d03e9b8bbc355435 (diff)
downloadtitleinfo-1904467e3614839c2e24142a09291c2d8cf12388.tar.gz
titleinfo-1904467e3614839c2e24142a09291c2d8cf12388.tar.bz2
/proc/<pid>/exe does not exist on BSD, better use the directory itself
for owner check.
-rw-r--r--titleinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/titleinfo.c b/titleinfo.c
index 88b5398..039bfb9 100644
--- a/titleinfo.c
+++ b/titleinfo.c
@@ -136,7 +136,7 @@ titleinfoUpdatePid (CompWindow *w)
char path[512];
struct stat fileStat;
- snprintf (path, 512, "/proc/%d/exe", pid);
+ snprintf (path, 512, "/proc/%d", pid);
if (!lstat (path, &fileStat))
tw->owner = fileStat.st_uid;
}