]> git.ipfire.org Git - thirdparty/systemd.git/commit
automount: do not start expiration timer for TimeoutIdleSec=0 714/head
authorDaniel Mack <daniel@zonque.org>
Fri, 24 Jul 2015 15:40:55 +0000 (17:40 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 24 Jul 2015 16:33:52 +0000 (18:33 +0200)
commit93a3b53b2be5566b8f05746860645cbe99059701
tree7b05d87379b05f6be4b7672f196a392889f1b957
parenta60d8280521131e0b80a32eac4ad46403c6ef8c3
automount: do not start expiration timer for TimeoutIdleSec=0

The timer value for automount unit specified with TimeoutIdleSec= is rounded
up to one second if that directive is set to 0.

Fix this by bailing early in automount_enter_runnning() in case no timeout is
requested.
src/core/automount.c