Hi,

Jan Stary wrote on Tue, Oct 11, 2016 at 11:12:00AM +0200:

> As /var/tmp is a link to /tmp,
> can we have /tmp as the default in sort(1)?

That's OK schwarze@ if somebody wants to commit.

POSIX doesn't restrict us here.

Yours,
  Ingo


> Index: file.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/sort/file.c,v
> retrieving revision 1.20
> diff -u -p -r1.20 file.c
> --- file.c    3 Apr 2015 10:37:24 -0000       1.20
> +++ file.c    11 Oct 2016 09:09:24 -0000
> @@ -50,7 +50,7 @@ unsigned long long available_free_memory
>  
>  bool use_mmap;
>  
> -const char *tmpdir = "/var/tmp";
> +const char *tmpdir = "/tmp";
>  const char *compress_program;
>  
>  size_t max_open_files = 16;
> Index: sort.1
> ===================================================================
> RCS file: /cvs/src/usr.bin/sort/sort.1,v
> retrieving revision 1.54
> diff -u -p -r1.54 sort.1
> --- sort.1    5 Apr 2015 14:20:22 -0000       1.54
> +++ sort.1    11 Oct 2016 09:09:24 -0000
> @@ -110,7 +110,7 @@ Store temporary files in the directory
>  The default path is the value of the environment variable
>  .Ev TMPDIR
>  or
> -.Pa /var/tmp
> +.Pa /tmp
>  if
>  .Ev TMPDIR
>  is not defined.
> @@ -541,7 +541,7 @@ option.
>  .El
>  .Sh FILES
>  .Bl -tag -width Pa -compact
> -.It Pa /var/tmp/.bsdsort.PID.*
> +.It Pa /tmp/.bsdsort.PID.*
>  Temporary files.
>  .El
>  .Sh EXIT STATUS

Reply via email to