File: chdir.c

package info (click to toggle)
bcron 0.09-11%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 496 kB
  • ctags: 313
  • sloc: ansic: 2,055; sh: 419; makefile: 113
file content (12 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#include <sysdeps.h>
#include <stdlib.h>
#include <unistd.h>
#include "bcron.h"

int chdir_bcron(void)
{
  const char* dir;
  if ((dir = getenv("BCRON_SPOOL")) == 0)
    dir = BCRON_SPOOL;
  return chdir(dir);
}