aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r--src/fcopy/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index a9443a764..c64d20127 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -200,7 +200,8 @@ static char *proc_pid_to_self(const char *target) {
200 200
201 // check where /proc/self points to 201 // check where /proc/self points to
202 static const char proc_self[] = "/proc/self"; 202 static const char proc_self[] = "/proc/self";
203 if (!(proc_pid = realpath(proc_self, NULL))) 203 proc_pid = realpath(proc_self, NULL);
204 if (proc_pid == NULL)
204 goto done; 205 goto done;
205 206
206 // redirect /proc/PID/xxx -> /proc/self/XXX 207 // redirect /proc/PID/xxx -> /proc/self/XXX