diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch')
-rw-r--r-- | packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch b/packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch index e69de29bb2..2dfc40f205 100644 --- a/packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch +++ b/packages/gpe-conf/gpe-conf-0.1.20/hwclock.patch @@ -0,0 +1,30 @@ +Index: suid.c +=================================================================== +RCS file: /cvs/gpe/base/gpe-conf/suid.c,v +retrieving revision 1.52 +diff -u -r1.52 suid.c +--- suid.c 16 Oct 2004 16:03:43 -0000 1.52 ++++ suid.c 25 Oct 2004 15:00:56 -0000 +@@ -95,6 +95,7 @@ + } + else // if ok, update rtc time + { ++ system("/sbin/hwclock --systohc"); + system ("echo > /var/spool/at/trigger"); + } + g_free(tstr); +@@ -337,11 +338,11 @@ + time_t t; + fscanf (in, "%ld", &t); + if (stime (&t) == -1) +- fprintf (stderr, +- "Error while setting the time: %d\n", +- errno); ++ fprintf (stderr, "Error while setting the time: %d\n", ++ errno); + else // if ok, update rtc time + { ++ system("/sbin/hwclock --systohc"); + system ("echo > /var/spool/at/trigger"); + } + } |