Changeset 24db42 in git


Ignore:
Timestamp:
Nov 2, 2012, 7:18:58 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
49fbc3fb1663015218abc676ea94783e17d0e9f1
Parents:
7fe9f8b1db2e4a62e37fab7daf03d3c2a744074a
Message:
fix: bug_tr357 (configure for findexec:getpwnam)
Location:
findexec
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • findexec/configure.ac

    r7fe9f8b r24db42  
    4141AC_HEADER_STDC
    4242AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h sys/stat.h sys/types.h])
    43 AC_CHECK_FUNCS(readlink getcwd getwd setenv putenv)
     43AC_CHECK_FUNCS(readlink getcwd getwd getpwnam setenv putenv)
    4444
    4545# Checks for typedefs, structures, and compiler characteristics.
  • findexec/feFopen.cc

    r7fe9f8b r24db42  
    88#include "config.h"
    99
     10#if defined(HAVE_PWD_H) && defined(HAVE_GETPWNAM)
     11#include <pwd.h>
     12#endif
     13
    1014//#include <reporter/reporter.h>
    1115
     
    7074      if (dir_sep==NULL)
    7175      {
    72         Werror(" illegal ~ in filename >>%s<<",longpath);
     76        char buf[256];
     77        strcpy(buf,"illegal ~ in filename >>");
     78        strncat(buf,longpath,235);
     79        strcat(buf,"<<");
     80        WerrorS(buf);
    7381        return NULL;
    7482      }
Note: See TracChangeset for help on using the changeset viewer.