Package: synaptic
Version: 0.57.7.1
Followup-For: Bug #334168

Hi,

the bug is situated at rpackage.cc, in the function
void RPackage::setPinned(bool flag)

At the end, rename() is used to move the temp file.
the result of renamed is not tested; on my system, it returns -1 with
errno 18, which means: "Invalid cross-device link"

You may put the temporary file in /var/lib/synaptic/preferences or use a
cross-device aware rename library.

I have no idea where to find such a cross-device rename library. I
looked at rename.c in core-utils but it's quite complicated. g_rename
from glib is not cross-device aware.

Cheers,

tibob

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_US.iso88591)

Versions of packages synaptic depends on:
ii  apt [libapt-pkg-libc6. 0.6.43.2          Advanced front-end for dpkg
ii  apt-utils [libapt-inst 0.6.43.2          APT utility programs
ii  libatk1.0-0            1.10.3-1          The ATK accessibility toolkit
ii  libc6                  2.3.5-12          GNU C Library: Shared libraries an
ii  libcairo2              1.0.2-3           The Cairo 2D vector graphics libra
ii  libfontconfig1         2.3.2-1.1         generic font configuration library
ii  libgcc1                1:4.0.2-7         GCC support library
ii  libglade2-0            1:2.5.1-2         library to load .glade files at ru
ii  libglib2.0-0           2.8.6-1           The GLib library of C routines
ii  libgtk2.0-0            2.8.10-1          The GTK+ graphical user interface 
ii  libpango1.0-0          1.10.2-1          Layout and rendering of internatio
ii  libstdc++6             4.0.2-7           The GNU Standard C++ Library v3
ii  libvte4                1:0.11.15-4       Terminal emulator widget for GTK+ 
ii  libx11-6               6.9.0.dfsg.1-4    X Window System protocol client li
ii  libxcursor1            1.1.3-1           X cursor management library
ii  libxext6               6.9.0.dfsg.1-4    X Window System miscellaneous exte
ii  libxi6                 6.9.0.dfsg.1-4    X Window System Input extension li
ii  libxinerama1           6.9.0.dfsg.1-4    X Window System multi-head display
ii  libxml2                2.6.23.dfsg.1-0.1 GNOME XML library
ii  libxrandr2             6.9.0.dfsg.1-4    X Window System Resize, Rotate and
ii  libxrender1            1:0.9.0.2-1       X Rendering Extension client libra
ii  scrollkeeper           0.3.14-10         A free electronic cataloging syste
ii  zlib1g                 1:1.2.3-9         compression library - runtime

Versions of packages synaptic recommends:
ii  deborphan                     1.7.18     Find orphaned libraries
ii  gksu                          1.3.6-1    graphical frontend to su
pn  libgnome2-perl                <none>     (no description available)

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to