File: chdir.c

package info (click to toggle)
bcron 0.11-23
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 796 kB
  • sloc: sh: 3,155; ansic: 2,416; makefile: 34
file content (12 lines) | stat: -rw-r--r-- 219 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#include <bglibs/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);
}