[DragonFlyBSD - Submit #2895] (Closed) atrun fails to read uid from the job file
bugtracker-admin at leaf.dragonflybsd.org
bugtracker-admin at leaf.dragonflybsd.org
Fri Mar 25 13:53:01 PDT 2016
Issue #2895 has been updated by swildner.
Status changed from New to Closed
Thanks, I've pushed it (with some little commit msg adjustment).
----------------------------------------
Submit #2895: atrun fails to read uid from the job file
http://bugs.dragonflybsd.org/issues/2895#change-12850
* Author: peeter
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
atrun uses fscanf to read uid and gid from the job file. The format fmt has %ld for both uid and gid, but their types are actually uid_t and gid_t, which are, in the end, unsigned int. So changing %ld to %u makes fscanf correctly read and assign uid and gid.
---Files--------------------------------
0001-Change-the-format-for-fscanf-so-atrun-correctly-read.patch (883 Bytes)
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Submit
mailing list