summaryrefslogtreecommitdiff
path: root/gpe-conf/gpe-conf-0.1.20/hwclock.patch
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
commitf96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch)
treeedb17ec2c4ea13c5acb1c7350957a249a820e28d /gpe-conf/gpe-conf-0.1.20/hwclock.patch
parentb6588aa6851fb220cedc387d21c51513ef8d67f4 (diff)
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'gpe-conf/gpe-conf-0.1.20/hwclock.patch')
-rw-r--r--gpe-conf/gpe-conf-0.1.20/hwclock.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/gpe-conf/gpe-conf-0.1.20/hwclock.patch b/gpe-conf/gpe-conf-0.1.20/hwclock.patch
index e69de29bb2..2dfc40f205 100644
--- a/gpe-conf/gpe-conf-0.1.20/hwclock.patch
+++ b/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");
+ }
+ }