cron02: Use lib to restart crond service

Use restart_daemon() to restart crond service.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
mount/mount05.c: Add mode argument to open call.

This patch fixes this build error on Ubuntu introduced with commit
9146d83d410dc060124344fcbcdbf46280b674a2.

In file included from /usr/include/fcntl.h:279:0,
                 from mount05.c:31:
In function ‘open’,
    inlined from ‘main’ at mount05.c:94:12:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments

Signed-off-by: Vinson Lee <vlee@twitter.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
flock03.c: fixes a typo when compiling with UCLINUX=1

Corrects FILENAME to FILE_NAME, and removes some trailing white-spaces in
empty lines.

Signed-off-by: Benoit Marcot <benoit.marcot@arm.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
sssd-lib.sh: Use lib to restart sssd service

Use restart_daemon() to restart sssd service.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
sssd-lib.sh: fix a bug of sssd daemon is not started

If sssd daemon is not started, sssd daemon should be kept stopped.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
mount/mount03.c: clean up

Clean up mount03.c:
    xxx func() -> xxx func(void)

    clean up setup()

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
mount/mount03.c: Test feature MS_NOATIME of mount(2)

Additional test for feature MS_NOATIME.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>