Skip to content

Commit

Permalink
tst-varlink works only if run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
thkukuk committed Jan 28, 2025
1 parent 72addf4 commit 7590387
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tst-varlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ main(void)
uint64_t login_t;
uint64_t logout_t;

if (getuid() != 0)
return 77;

clock_gettime (CLOCK_REALTIME, &ts);
login_t = wtmpdb_timespec2usec (ts);

Expand Down

0 comments on commit 7590387

Please sign in to comment.