Print this page
make: prefix errors and such with the right command name

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/make/bin/read2.cc
          +++ new/usr/src/cmd/make/bin/read2.cc
↓ open down ↓ 1864 lines elided ↑ open up ↑
1865 1865                  } else {
1866 1866                          (void) sprintf(message,
1867 1867                                         "%s: %s",
1868 1868                                         mbs_buffer,
1869 1869                                         pattern);
1870 1870                  }
1871 1871                  pattern = message;
1872 1872          }
1873 1873  
1874 1874          (void) fflush(stdout);
1875      -        (void) fprintf(stderr, gettext("make: Fatal error in reader: "));
     1875 +        (void) fprintf(stderr, gettext("%s: Fatal error in reader: "),
     1876 +            getprogname());
1876 1877          (void) vfprintf(stderr, pattern, args);
1877 1878          (void) fprintf(stderr, "\n");
1878 1879          va_end(args);
1879 1880  
1880 1881          if (temp_file_name != NULL) {
1881 1882                  (void) fprintf(stderr,
1882      -                               gettext("make: Temp-file %s not removed\n"),
     1883 +                               gettext("%s: Temp-file %s not removed\n"),
     1884 +                               getprogname(),
1883 1885                                 temp_file_name->string_mb);
1884 1886                  temp_file_name = NULL;
1885 1887          }
1886 1888  
1887 1889          if (report_pwd) {
1888 1890                  (void) fprintf(stderr,
1889 1891                                 gettext("Current working directory %s\n"),
1890 1892                                 get_current_path());
1891 1893          }
1892 1894          (void) fflush(stderr);
1893 1895          exit_status = 1;
1894 1896          exit(1);
1895 1897  }
1896 1898  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX