Hi!
I'm attaching a debdiff to NMU and fix this current problem and some other minor
stuff.
Thanks
--
Marco Rodrigues
http://Marco.Tondela.org
diff -Nru sbackup-0.10.4/debian/changelog sbackup-0.10.4.1/debian/changelog
--- sbackup-0.10.4/debian/changelog 2007-06-03 14:24:15.000000000 +0100
+++ sbackup-0.10.4.1/debian/changelog 2008-06-12 22:45:43.000000000 +0100
@@ -1,3 +1,12 @@
+sbackup (0.10.4.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Remove 'Encoding=UTF-8' from desktop files.
+ * Add 'su-to-root -X' to desktop files (Closes: #479826).
+ * Change 'admin' group to 'backup' one (Closes: #427697).
+
+ -- Marco Rodrigues <[EMAIL PROTECTED]> Thu, 12 Jun 2008 22:39:42 +0100
+
sbackup (0.10.4) unstable; urgency=low
* Official release.
diff -Nru sbackup-0.10.4/debian/menu sbackup-0.10.4.1/debian/menu
--- sbackup-0.10.4/debian/menu 2007-01-25 03:57:48.000000000 +0000
+++ sbackup-0.10.4.1/debian/menu 2008-06-12 22:35:35.000000000 +0100
@@ -1,4 +1,4 @@
?package(sbackup):needs="X11" section="Apps/System"\
- title="Simple Backup Config" command="gksu /usr/sbin/simple-backup-config"
+ title="Simple Backup Config" command="su-to-root -X
/usr/sbin/simple-backup-config"
?package(sbackup):needs="X11" section="Apps/System"\
- title="Simple Restore" command="gksu /usr/sbin/simple-restore-gnome"
+ title="Simple Restore" command="su-to-root -X /usr/sbin/simple-restore-gnome"
diff -Nru sbackup-0.10.4/sbackup.desktop sbackup-0.10.4.1/sbackup.desktop
--- sbackup-0.10.4/sbackup.desktop 2007-05-08 19:33:59.000000000 +0100
+++ sbackup-0.10.4.1/sbackup.desktop 2008-06-12 22:35:08.000000000 +0100
@@ -1,9 +1,8 @@
[Desktop Entry]
Version=1.0
-Encoding=UTF-8
Name=Simple Backup Config
Comment=Configuration tool for Simple Backups Suite
-Exec=gksu simple-backup-config
+Exec=su-to-root -X simple-backup-config
Terminal=false
Type=Application
Categories=Application;System;Settings
diff -Nru sbackup-0.10.4/sbackupd.py sbackup-0.10.4.1/sbackupd.py
--- sbackup-0.10.4/sbackupd.py 2007-05-13 07:21:34.000000000 +0100
+++ sbackup-0.10.4.1/sbackupd.py 2008-06-12 22:38:07.000000000 +0100
@@ -177,12 +177,12 @@
# Check our user id
if os.geteuid() != 0: sys.exit (_("Currently backup is only runnable by root"))
-# [Bug 112540] : Let the admin group have read access to the backup dirs
+# [Bug 112540] : Let the backup group have read access to the backup dirs
try :
- # The uid is still root and the gid is admin
- os.setgid( grp.getgrnam("admin").gr_gid )
+ # The uid is still root and the gid is backup
+ os.setgid( grp.getgrnam("backup").gr_gid )
except Exception, e:
- print "W: Failed to set the gid to 'admin' one :" + str(e)
+ print "W: Failed to set the gid to 'backup' one :" + str(e)
pass
# second we read the config file, so must check if the user provided one on the
diff -Nru sbackup-0.10.4/srestore.desktop sbackup-0.10.4.1/srestore.desktop
--- sbackup-0.10.4/srestore.desktop 2007-05-08 19:33:59.000000000 +0100
+++ sbackup-0.10.4.1/srestore.desktop 2008-06-12 22:45:31.000000000 +0100
@@ -1,9 +1,8 @@
[Desktop Entry]
Version=1.0
-Encoding=UTF-8
Name=Simple Backup Restore
Comment=Restore tool for Simple Backups Suite
-Exec=gksu simple-restore-gnome
+Exec=su-to-root -X simple-restore-gnome
Terminal=false
Type=Application
Categories=Application;System;Settings