debian/0000755000000000000000000000000012245043574007174 5ustar debian/symlinks.lintian-overrides0000644000000000000000000000005311345527450014423 0ustar symlinks: syntax-error-in-debian-changelog debian/copyright0000644000000000000000000000177011664753720011141 0ustar This is the Debian GNU/Linux prepackaged version of Mark Lord's symlinks utility. This package was put together by Bernd Eckenfels . It is currently maintained by Sven Joachim , the original sources for this version can be found at http://www.ibiblio.org/pub/Linux/utils/file/symlinks-1.4.tar.gz. Copyright (C) 2009 Mark Lord, freely distributable License clarification as found in Bug #273338: Hi, My "symlinks" utility pre-dates the "open source licensing" fad by a number of years. Just to clarify, this is 100% freeware, written entirely by myself. The intent is to use it to detect missing/obsolete symlink targets on an installed distro, before creating the "gold" (or "final") release discs. Use and distribute and modify as you (or anyone else) sees fit. There have no formal restrictions or requirements whatsoever regarding distribution of either binaries or source code, whether modified or original. Cheers -- Mark Lord Real-Time Remedies Inc. mlord@pobox.com debian/symlinks.docs0000644000000000000000000000001511345527450011713 0ustar symlinks.lsm debian/changelog0000644000000000000000000001061212245043557011047 0ustar symlinks (1.4-1ubuntu1) trusty; urgency=low * Mark as Multi-Arch: foreign. -- Matthias Klose Tue, 26 Nov 2013 08:01:48 +0100 symlinks (1.4-1) unstable; urgency=low * New upstream release after 13 years of inactivity. - New option -o to fix links on other filesystems while recursing. * Fix possible heap corruption introduced in 1.2-6 (Closes: #573074). * Add a real debian/watch file instead of an empty dummy one. * Update debian/copyright. * Convert to format 3.0 (quilt). - Drop quilt build-dependency and patch logic from debian/rules. - Remove debian/README.source. * Split debian/patches/symlinks.c.diff into two patches largefile.diff and get_current_dir_name.diff. * Only use get_current_dir_name() if we are building with (e)glibc. * Minimize debian/patches/Makefile.diff. * Convert headers of the Debian patches to DEP-3 format. * Use dpkg-buildflags to set compiler flags. * Update debhelper compatibility level to 8. * Bump Standards-Version to 3.9.2, no changes needed. -- Sven Joachim Wed, 30 Nov 2011 18:32:15 +0100 symlinks (1.2-6) unstable; urgency=low * Use get_current_dir_name() instead of getcwd() to ensure correct shortening if the path “symlinks” operates on contains itself a symlink (Closes: #61140). Thanks to Michael Schuerig. * Use quilt as a patch system, add debian/README.source as recommended by Policy §4.14. * Build with dh to minimize debian/rules. * Bump Standards-Version to 3.8.3, no further changes needed. * Add Vcs-Browser and Vcs-Git fields to debian/control. -- Sven Joachim Fri, 18 Sep 2009 12:51:27 +0200 symlinks (1.2-5) unstable; urgency=low * New maintainer (Closes: #486001). * Acknowledge NMUs (Closes: #108542, #167122, #176341). * Don't strip binary in build target (Closes: #438080). * Patch from Fedora to shorten symlinks that are converted from absolute to relative (Closes: #78600, #153496, #368941). * Honor DEB_BUILD_OPTIONS=noopt in CFLAGS. * #include in symlinks.c to fix GCC warnings. * Document all options in the help text. * Add lintian override for unfinalized ancient changelog entry. * Bump debhelper compatibility level to 7. * Change section to utils to match override file. * Update debian/copyright. * Bump Standards-Version to 3.8.0, no further changes needed. -- Sven Joachim Tue, 12 Aug 2008 15:44:26 +0200 symlinks (1.2-4.2) unstable; urgency=low * NMU * Add license clarification from Mark Lord to copyright file. Thanks Mark for your email. Closes: #273338 * This upload will trigger a rebuild with current gcc, thus it Closes: #176341. -- Bill Allombert Tue, 10 May 2005 19:31:02 +0200 symlinks (1.2-4.1) unstable; urgency=low * NMU * Add Build-Depends. Closes: #108542. * Apply patch for large files. Closes: #167122. -- Daniel Schepler Sun, 6 Apr 2003 17:20:34 -0700 symlinks (1.2-4) unstable; urgency=low * typo fix in changelog from Goswin Brederlow * fixed return type of Main. Closes: #69267 -- Bernd Eckenfels Mon, 11 Dec 2000 10:29:58 +0100 symlinks (1.2-3) unstable; urgency=low * new standards version (including /usr/share/doc and man support) -- Bernd Eckenfels Sun, 23 Jul 2000 04:49:13 +0200 symlinks (1.2-2) unstable; urgency=low * included debhelper -- Bernd Eckenfels Mon, 2 Nov 1998 00:32:03 +0100 symlinks (1.2-1) unstable; urgency=low * new upstream version (lengthy links and test option) * included deb-std drom debmake packge for building package -- Bernd Eckenfels Mon, 4 Nov 1996 22:36:13 +0100 symlinks (1.0-5) unstable; urgency=low * Strip Binarie (#5108) -- Bernd Eckenfels Wed, 30 Oct 1996 02:52:16 +0100 symlinks (1.0-4) unstable; urgency=low * Updated to Standards-Version 2.1.1.0. * New maintainer. (old: Michael Meskes ) -- Bernd Eckenfels Thu, 26 Sep 1996 19:11:06 +0200 symlinks (1.0-3) unstable; urgency=LOW * New maintainer. (old: Bill Mitchell ) * Made package architecture independent (Bug#3364) * Added 'Priority: optional' to control file * Recompiled for ELF (Bug#4144) * Corrected extended description (Bug#3614) * Manpage now gzipped * Binary is now dynamically linked debian/compat0000644000000000000000000000000211664753720010377 0ustar 8 debian/symlinks.install0000644000000000000000000000002211345527450012427 0ustar symlinks /usr/bin debian/patches/0000755000000000000000000000000011665001574010622 5ustar debian/patches/Makefile.diff0000644000000000000000000000113611664753720013200 0ustar Description: Honor standard compiler flags On Debian systems, they are obtained from dpkg-buildflags. Author: Sven Joachim Last-Update: 2011-11-28 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ # Makefile for symlinks CC = gcc +CFLAGS ?= -O2 -g all: symlinks symlinks: symlinks.c - $(CC) -Wall -Wstrict-prototypes -O2 ${CFLAGS} -o symlinks symlinks.c + $(CC) -o symlinks $(CPPFLAGS) $(CFLAGS) symlinks.c $(LDFLAGS) install: all symlinks.8 install -m 755 -o root -g root symlinks /usr/local/bin debian/patches/largefile.diff0000644000000000000000000000100511664753720013410 0ustar Description: Fix warning on large files On files > 2GB on 32-bit systems, symlinks would print annyoing error messages "Value too large for defined data type". Author: Eduard Bloch Bug-Debian: http://bugs.debian.org/167122 --- symlinks.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) --- a/symlinks.c +++ b/symlinks.c @@ -1,3 +1,7 @@ +#define _FILE_OFFSET_BITS 64 +#define _LARGEFILE_SOURCE +#define _LARGEFILE64_SOURCE + #include #ifndef _POSIX_SOURCE #define _POSIX_SOURCE debian/patches/get_current_dir_name.diff0000644000000000000000000000245111665001574015635 0ustar Description: Fix incorrect shortening in some cases If the path "symlinks" operates on contains itself a symlink, symlinks would be shortened incorrectly. We solve the problem by building with _D_GNU_SOURCE and using the glibc extension get_current_dir_name() instead of getcwd(). Author: Sven Joachim Bug-Debian: http://bugs.debian.org/61140 Last-Update: 2011-11-28 --- symlinks.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) --- a/symlinks.c +++ b/symlinks.c @@ -315,7 +315,12 @@ int main(int argc, char **argv) { +#if defined (_GNU_SOURCE) && defined (__GLIBC__) + static char path[PATH_MAX+2]; + char* cwd = get_current_dir_name(); +#else static char path[PATH_MAX+2], cwd[PATH_MAX+2]; +#endif int dircount = 0; char c, *p; @@ -324,10 +329,22 @@ else progname++; +#if defined (_GNU_SOURCE) && defined (__GLIBC__) + if (NULL == cwd) { + fprintf(stderr,"get_current_dir_name() failed\n"); +#else if (NULL == getcwd(cwd,PATH_MAX)) { fprintf(stderr,"getcwd() failed\n"); +#endif exit (1); } +#if defined (_GNU_SOURCE) && defined (__GLIBC__) + cwd = realloc(cwd, strlen(cwd)+2); + if (cwd == NULL) { + fprintf(stderr, "realloc() failed\n"); + exit (1); + } +#endif if (!*cwd || cwd[strlen(cwd)-1] != '/') strcat(cwd,"/"); debian/patches/manpage.diff0000644000000000000000000000055211664753720013074 0ustar Description: Fix section of the symlinks manpage Author: Sven Joachim --- symlinks.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/symlinks.8 +++ b/symlinks.8 @@ -1,4 +1,4 @@ -.TH SYMLINKS 8 "October 2008" "Version 1.4" +.TH SYMLINKS 1 "October 2008" "Version 1.4" .SH NAME symlinks \- symbolic link maintenance utility debian/patches/series0000644000000000000000000000010411664753720012040 0ustar Makefile.diff manpage.diff largefile.diff get_current_dir_name.diff debian/control0000644000000000000000000000137212245043574010602 0ustar Source: symlinks Section: utils Priority: optional Maintainer: Sven Joachim Build-Depends: debhelper (>= 8), dpkg-dev (>= 1.15.7) Standards-Version: 3.9.2 Vcs-Browser: http://git.debian.org/?p=users/joachim-guest/symlinks.git Vcs-Git: git://git.debian.org/users/joachim-guest/symlinks.git Package: symlinks Architecture: any Multi-Arch: foreign Depends: ${shlibs:Depends}, ${misc:Depends} Description: scan/change symbolic links Symlinks scans directories for symbolic links and lists them on stdout. Each link is prefixed with a classification of relative, absolute, dangling, messy, lengthy or other_fs. . Symlinks can also convert absolute links (within the same filesystem) to relative links and can delete messy and dangling links. debian/symlinks.manpages0000644000000000000000000000001311345527450012554 0ustar symlinks.8 debian/dirs0000644000000000000000000000007011345527450010055 0ustar /usr/bin/ /usr/share/doc/symlinks/ /usr/share/man/man1/ debian/rules0000755000000000000000000000041511664753720010261 0ustar #!/usr/bin/make -f export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) -D_GNU_SOURCE export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -Wall -Wstrict-prototypes export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) override_dh_auto_install: %: dh $@ debian/source/0000755000000000000000000000000011664753720010501 5ustar debian/source/format0000644000000000000000000000001411664753720011707 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000012211664753720010225 0ustar version=3 http://www.ibiblio.org/pub/Linux/utils/file/symlinks-([\.\d]+)\.tar\.gz