Changeset 24db42 in git for findexec/feFopen.cc


Ignore:
Timestamp:
Nov 2, 2012, 7:18:58 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
49fbc3fb1663015218abc676ea94783e17d0e9f1
Parents:
7fe9f8b1db2e4a62e37fab7daf03d3c2a744074a
Message:
fix: bug_tr357 (configure for findexec:getpwnam)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.