[Bug 888308] New: vacation -i initializes unusable db files with gdbm_open()
https://bugzilla.novell.com/show_bug.cgi?id=888308 https://bugzilla.novell.com/show_bug.cgi?id=888308#c0 Summary: vacation -i initializes unusable db files with gdbm_open() Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jaekel@math.tu-berlin.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10 Within OpenSuSE 13.1 libgdbm4 is used to create and manage database files. A good example for an application of this is vacation. vacation -i initializes a file .vacation.db with the help of gdbm_open(). But the database file that was created seems to be unusable. The file format should be something like "GNU dbm 1.x or ndbm database, little endian", but the file can only be identified as "data". I can reproduce the behaviour also with a little program in C to open a database (see the Attachment). Its a short extract from vacation.c of the source package of vacation-1.2.7.1. Reproducible: Always Steps to Reproduce: 1. call "vacation -i" 2. 3. Actual Results: Generated .vacation.db looks like: -rw-r--r-- 1 jaekel numerik 3145728 Jul 21 17:09 .vacation.db The file format of the generated .vacation.db is "data": %file .vacation.db .vacation.db: data Expected Results: The file format should be something like "GNU dbm 1.x or ndbm database, little endian" At OpenSuSE-12.2 and SLES11 it works well. Because my Mailserver is running on SLES11 and our clients was upgraded from OpenSuSE-12.2 to OpenSuSE13.1, it would not be possible anymore to initialize a correct .vacation.db from a client. The Mailserver dont accept the vacation database file and produces an error message about a wrong data format of the vacation db. Our current configuration: Mailserver: SLES11 PL 1, gdbm-1.8.3-371.83, vacation-1.2.6.2-126.22 Clients: OpenSuSE 13.1, libgdbm4-1.10-7.1.2, vacation-1.2.7.1-6.1.2 It works well with clients under OpenSuSE-12.2, libgdbm3-1.8.3-393.1.3, vacation-1.2.7.1-2.1.2 Under 12.2 the .vacation.db looks like this one: -rw-r--r-- 1 jaekel numerik 98304 Apr 30 13:04 .vacation.db %file .vacation.db .vacation.db: GNU dbm 1.x or ndbm database, little endian -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c1
Petr Gajdos
database (see the Attachment). Its a short extract from vacation.c of the
Could you please attach it? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c2
--- Comment #2 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c3
Annette Jäkel
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c4
--- Comment #4 from Annette Jäkel
From libgdm4 on, they appear to change e -> f (-> d for 32bit) in the file
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c5
--- Comment #5 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c6
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c7
--- Comment #7 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c8
--- Comment #8 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c9
--- Comment #9 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c10
--- Comment #10 from Petr Gajdos
(In reply to comment #8)
Seems to be OK ... please send this also upstream file@mx.gw.com
Done. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c12
Annette Jäkel
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c13
--- Comment #13 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c14
--- Comment #14 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c15
Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c16
--- Comment #16 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c17
--- Comment #17 from Petr Gajdos
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c18
Annette Jäkel
Annette?
Sorry, I'm busy with other topics yesterday. Meanwhile I discuss your suggestion to use a vacation compiled against a libgdm4 library installed parallel to libgdm3 on the SLES Server with my colleagues. We think even if this can be done successfully its not a good idea for my running server, because a lot of people uses an original gdbm3 .vacation.db, which is never recreated but only initialized (flushed) by a call of "vacation -i". I fear that they run into error messages if they reactivate their vacation under a gdbm4 version of vacation. Furthermore our webmaster told me, that our webmailer (IMP, Horde), which has the ability to setup vacations, uses its own solution. It creates a gdbm3 based vacation.db on his Debian based system. So it seems to us, we have to spend more time to prepare a solution which fit for all our needs and have to setup a temporarily solution for the running mail system meanwhile. So we decide to remove the vacation package from the OpenSuSE-13.1 Clients for a certain time and use a script for "vacation -i" which simply ssh to the server and run the "vacation -i" there. Than for my new Scientific Linux mailserver I will try to use a libgdm4 version of vacation. Because this server is in test state, I have better choice to test the whole scenario. Than we can announce the changes and recreate all user .vacation.db files at the maintenance date by a script. So in my opinion I have a "solution" for my problem. Thank you for all your comments and suggestions. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=888308
https://bugzilla.novell.com/show_bug.cgi?id=888308#c19
Petr Gajdos
http://bugzilla.novell.com/show_bug.cgi?id=888308
Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=888308
--- Comment #21 from Swamp Workflow Management
http://bugzilla.novell.com/show_bug.cgi?id=888308
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com