We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 863a555 commit ab1c093Copy full SHA for ab1c093
src/shared/misc.c
@@ -395,12 +395,13 @@ RC_DEPTREE * _rc_deptree_load(int force, int *regen)
395
int merrno;
396
time_t t;
397
char file[PATH_MAX];
398
- int svcdirfd = rc_dirfd(RC_DIR_SVCDIR);
399
struct stat st;
400
FILE *fp;
401
402
t = 0;
403
if (rc_deptree_update_needed(&t, file) || force != 0) {
+ int svcdirfd = rc_dirfd(RC_DIR_SVCDIR);
404
+
405
/* Test if we have permission to update the deptree */
406
fd = openat(svcdirfd, "deptree", O_WRONLY);
407
merrno = errno;
0 commit comments