Mailinglist Archive: opensuse-bugs (3727 mails)
| < Previous | Next > |
[Bug 644467] /sbin/conf.d/SuSEconfig.groff overwrites /etc/papersize
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Thu, 7 Oct 2010 09:39:26 +0000
- Message-id: <20101007093926.95C3624551D@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=644467
https://bugzilla.novell.com/show_bug.cgi?id=644467#c3
Michal Vyskocil <mvyskocil@xxxxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 - None |P4 - Low
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Michal Vyskocil <mvyskocil@xxxxxxxxxx> 2010-10-07 09:39:25
UTC ---
Thanks for a pointer, Werner, the fix seems to be very simple
Index: SuSEconfig.groff
===================================================================
--- SuSEconfig.groff (revision e62baf52c4562f4d0d3fb90fe1a27789)
+++ SuSEconfig.groff (working copy)
@@ -56,6 +56,7 @@
esac
fi
-echo "$PAPER_SIZE" > /etc/papersize
+echo "$PAPER_SIZE" > /etc/papersize.SuSEconfig
+check_md5_and_move /etc/papersize
exit 0
Now it seems to be more correct
# after installation with empty RC_LC_PAPER and RC_LANG=en_US
$ cat /etc/papersize
letter
# the first run is crucial, because it creates the md5 dir
$ sudo /sbin/SuSEconfig --module groff
Starting SuSEconfig, the SuSE Configuration Tool...
Running module groff only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.groff...
Installing new /etc/papersize
Finished.
$ cat /etc/papersize
letter
# let change it to my value
$ sudo vim /etc/papersize
# then SuSEconfig will no longer rewrite it
$ sudo /sbin/SuSEconfig --module groff
Starting SuSEconfig, the SuSE Configuration Tool...
Running module groff only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.groff...
ATTENTION: You have modified /etc/papersize. Leaving it untouched...
You can find my version in /etc/papersize.SuSEconfig...
Finished.
$ cat /etc/papersize
a4
Submitted a fix - sr 49958
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |