summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-03-24lndir 1.0.5HEADlndir-1.0.5masterAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-05-20Fix #1: Segmentation fault on trailing slashesAlan Coopersmith1-1/+1
dodir may pass a NULL pointer for the **p argument so we verify the pointer is not NULL before dereferencing it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-03-29Make existing link warning more explicitNaïm Favier1-1/+1
2022-12-04lndir 1.0.4lndir-1.0.4Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19Use strlcat and strlcpy if availableAlan Coopersmith3-2/+43
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19Use memmove instead of strcpy for overlapping stringsAlan Coopersmith1-1/+2
strcpy is not guaranteed to work with overlapping arguments. Fortunately this code is only called on paths with multiple consecutive '/' characters. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19Reduce number of strcmp calls to check directory names for revision controlAlan Coopersmith1-17/+20
Group directory names to match depending on whether they start with a "." or not, when not using -withrevinfo. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19Fix -Wsign-conversion warning from clangAlan Coopersmith1-1/+1
lndir.c:174:18: warning: implicit conversion changes signedness: 'nlink_t' (aka 'unsigned int') to 'int' [-Wsign-conversion] n_dirs = fs->st_nlink; ~ ~~~~^~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19Fix -Wshorten-64-to-32 warnings from clangAlan Coopersmith1-2/+2
lndir.c:252:11: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] symlen = readlink (dp->d_name, symbuf, sizeof(symbuf) - 1); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lndir.c:261:19: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32] basesymlen = readlink(buf, basesym, sizeof(basesym) - 1); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19Mark global variables as staticAlan Coopersmith1-5/+5
Clears -Wmissing-variable-declarations warnings from clang Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19constify a couple more function argumentsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-19gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-06-18Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parametersAlan Coopersmith1-2/+2
configure.ac:47: warning: AC_OUTPUT should be used without arguments. configure.ac:47: You should run autoupdate. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-15gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-15Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-19Update README for gitlab migrationAlan Coopersmith3-26/+19
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2014-06-04autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-03-07lndir 1.0.3lndir-1.0.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Add printf & noreturn attributes for static analysisAlan Coopersmith2-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith1-5/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-07config: Remove unnecessary AC_SUBST from configure.acAlan Coopersmith1-1/+0
PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-07config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-6/+8
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-07Convert main() to use traditional argc & argv names instead of ac & avAlan Coopersmith1-12/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-07Add missing -withrevinfo flag to usage outputAlan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-08-13lndir 1.0.2lndir-1.0.2Alan Coopersmith1-1/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-08-13Let XORG_DEFAULT_OPTIONS handle AC_PROG_CC & AC_PROG_INSTALLAlan Coopersmith1-3/+0
Don't need to duplicate calls to them (potentially overriding the c99 settings from the xorg-macros calls) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-08-13upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith2-8/+4
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-21Man page: note that *~ is always skipped, update second list of scm subdirsAlan Coopersmith1-2/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-21Enable AC_SYS_LARGEFILE & AC_USE_SYSTEM_EXTENSIONSAlan Coopersmith2-1/+9
Avoids stat() failures on 32-bit platforms if a file has a size that doesn't fit in 32-bits Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-21Assume POSIX, lose support for old Minix & LynxOSAlan Coopersmith1-31/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-21Move to xorg-macros 1.4 & use INSTALL_CMD to generate INSTALL fileAlan Coopersmith2-11/+13
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
2010-04-16Fill in COPYING & README filesAlan Coopersmith2-8/+42
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-16Add standard .gitignoreAlan Coopersmith1-0/+78
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-10-15Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith2-5/+10
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-15Add .hg & .git to the list of known revision control subdirectoriesAlan Coopersmith2-5/+11
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-15include <limits.h> to ensure INT_MAX is defined after 23bacbd6cAlan Coopersmith1-0/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-15Fix broken assumption where stat.st_nlink == 1Eric Blake1-0/+2
Normally, any directory has a st_nlink of at least 2 (. and ..). On some systems, a directory's st_nlink is set to 1 where it is too expensive to compute the correct value (e.g. remote filesystems). Instead of treating this as a legitimate value (i.e. that the directory contains nothing to link from), special case this and force a complete scan of the directory's contents. Further explanation: http://cygwin.com/ml/cygwin/2008-06/msg00056.html http://cygwin.com/ml/cygwin-apps/2008-08/msg00264.html Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2007-12-06Replace static ChangeLog with dist-hook to generate from git logJames Cloos2-13/+10
2007-12-03Use __APPLE__ instead of __DARWIN__Jeremy Huddleston1-1/+1
2005-12-21Update package version for X11R7 release.lndir-1.0.1XORG-7_1XORG-7_0_99_901XORG-7_0Kevin E Martin2-1/+6
2005-12-19Stub COPYING filesAdam Jackson1-0/+12
2005-12-15Update package version number for final X11R7 release candidate.lndir-1.0.0XORG-6_99_99_904Kevin E Martin2-1/+6
2005-12-10Initial revision.MODULAR_COPYKevin E Martin4-0/+104
2005-11-23Bug #5003 <https://bugs.freedesktop.org/show_bug.cgi?id=5003> Patch #3763XORG-6_99_99_903XORG-6_8_99_903Alan Coopersmith1-3/+3
<https://bugs.freedesktop.org/attachment.cgi?id=3763> Xorg code misuses S_IF* macros
2005-07-14Bug 3774 <https://bugs.freedesktop.org/show_bug.cgi?id=3774> Patch 3081XORG-6_99_99_902XORG-6_99_99_901XORG-6_99_99_900XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_16XORG-6_8_99_15Alan Coopersmith1-2/+2
<https://bugs.freedesktop.org/attachment.cgi?id=3081> lndir.man fails to mention .svn (Bernhard Reiter)