summaryrefslogtreecommitdiff
path: root/gnu/libexec/uucp/libunix/failed.c
blob: 66c98a80df69edcd8a05e821f6282985c775ae1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* failed.c
   Save a file in the .Failed directory.  */

#include "uucp.h"

#include "sysdep.h"
#include "uudefs.h"
#include "system.h"

char *
zsysdep_save_failed_file (zfile)
     const char *zfile;
{
  char *zto;

  zto = zsappend3 (zSspooldir, FAILEDDIR, zfile);

  if (! fsysdep_move_file (zfile, zto, TRUE, FALSE, FALSE,
			   (const char *) NULL))
    {
      ubuffree (zto);
      return NULL;
    }

  return zto;
}