comparison lib-src/make-path.c @ 6108:b3ea9bc60744

* make-path.c (main): Return 1 on error, not -1. Update GPL.
author David J. MacKenzie <djm@gnu.org>
date Sun, 27 Feb 1994 03:38:56 +0000
parents 07010383044d
children 953e5ea2b8ea
comparison
equal deleted inserted replaced
6107:8cc2a5d2e728 6108:b3ea9bc60744
3 3
4 This file is part of GNU Emacs. 4 This file is part of GNU Emacs.
5 5
6 GNU Emacs is free software; you can redistribute it and/or modify 6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option) 8 the Free Software Foundation; either version 2, or (at your option)
9 any later version. 9 any later version.
10 10
11 GNU Emacs is distributed in the hope that it will be useful, 11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46 this will signal an error. */ 46 this will signal an error. */
47 if (mkdir (path, 0777) < 0) 47 if (mkdir (path, 0777) < 0)
48 { 48 {
49 fprintf (stderr, "%s: ", prog_name); 49 fprintf (stderr, "%s: ", prog_name);
50 perror (path); 50 perror (path);
51 return -1; 51 return 1;
52 } 52 }
53 53
54 return 0; 54 return 0;
55 } 55 }
56 56