~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/pathchk.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* pathchk -- check whether file names are valid or portable
2
 
   Copyright (C) 1991-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 1991-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
25
25
#include "quote.h"
26
26
#include "quotearg.h"
27
27
 
28
 
/* The official name of this program (e.g., no `g' prefix).  */
 
28
/* The official name of this program (e.g., no 'g' prefix).  */
29
29
#define PROGRAM_NAME "pathchk"
30
30
 
31
31
#define AUTHORS \
83
83
usage (int status)
84
84
{
85
85
  if (status != EXIT_SUCCESS)
86
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
87
 
             program_name);
 
86
    emit_try_help ();
88
87
  else
89
88
    {
90
89
      printf (_("Usage: %s [OPTION]... NAME...\n"), program_name);
168
167
  for (p = file;  (p = strchr (p, '-'));  p++)
169
168
    if (p == file || p[-1] == '/')
170
169
      {
171
 
        error (0, 0, _("leading `-' in a component of file name %s"),
 
170
        error (0, 0, _("leading '-' in a component of file name %s"),
172
171
               quote (file));
173
172
        return false;
174
173
      }