Skip to content

Commit

Permalink
lib: Rename abspath to path-util
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj authored and GitLab committed Jan 30, 2017
1 parent 49d0f8c commit dfa2201
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/config/doveconf.c
Expand Up @@ -2,7 +2,7 @@

#include "lib.h"
#include "array.h"
#include "abspath.h"
#include "path-util.h"
#include "module-dir.h"
#include "env-util.h"
#include "guid.h"
Expand Down
2 changes: 1 addition & 1 deletion src/imap-urlauth/imap-urlauth.c
Expand Up @@ -49,7 +49,7 @@ The imap-urlauth service thus consists of three separate stages:
#include "buffer.h"
#include "istream.h"
#include "ostream.h"
#include "abspath.h"
#include "path-util.h"
#include "base64.h"
#include "str.h"
#include "process-title.h"
Expand Down
2 changes: 1 addition & 1 deletion src/imap/main.c
Expand Up @@ -4,7 +4,7 @@
#include "ioloop.h"
#include "istream.h"
#include "ostream.h"
#include "abspath.h"
#include "path-util.h"
#include "str.h"
#include "base64.h"
#include "process-title.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lda/main.c
Expand Up @@ -7,7 +7,7 @@
#include "fd-set-nonblock.h"
#include "istream.h"
#include "istream-seekable.h"
#include "abspath.h"
#include "path-util.h"
#include "safe-mkstemp.h"
#include "eacces-error.h"
#include "ipwd.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lib-http/test-http-payload.c
Expand Up @@ -3,7 +3,7 @@
#include "lib.h"
#include "str.h"
#include "llist.h"
#include "abspath.h"
#include "path-util.h"
#include "hostpid.h"
#include "ioloop.h"
#include "istream.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lib-master/master-instance.c
@@ -1,7 +1,7 @@
/* Copyright (c) 2013-2017 Dovecot authors, see the included COPYING file */

#include "lib.h"
#include "abspath.h"
#include "path-util.h"
#include "array.h"
#include "istream.h"
#include "ostream.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lib-master/master-service-settings.c
Expand Up @@ -2,7 +2,7 @@

#include "lib.h"
#include "array.h"
#include "abspath.h"
#include "path-util.h"
#include "istream.h"
#include "write-full.h"
#include "str.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lib-master/master-service.c
Expand Up @@ -3,7 +3,7 @@
#include "lib.h"
#include "lib-signals.h"
#include "ioloop.h"
#include "abspath.h"
#include "path-util.h"
#include "array.h"
#include "strescape.h"
#include "env-util.h"
Expand Down
3 changes: 1 addition & 2 deletions src/lib-storage/index/dbox-common/dbox-storage.c
@@ -1,9 +1,8 @@
/* Copyright (c) 2007-2017 Dovecot authors, see the included COPYING file */

#include "lib.h"
#include "abspath.h"
#include "path-util.h"
#include "ioloop.h"
#include "abspath.h"
#include "fs-api.h"
#include "mkdir-parents.h"
#include "unlink-old-files.h"
Expand Down
2 changes: 1 addition & 1 deletion src/lib-storage/mailbox-list.c
Expand Up @@ -2,7 +2,7 @@

#include "lib.h"
#include "array.h"
#include "abspath.h"
#include "path-util.h"
#include "ioloop.h"
#include "mkdir-parents.h"
#include "str.h"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Makefile.am
Expand Up @@ -11,7 +11,6 @@ $(srcdir)/unicodemap.c: unicodemap.pl UnicodeData.txt
perl $(srcdir)/unicodemap.pl < UnicodeData.txt > $@

liblib_la_SOURCES = \
abspath.c \
array.c \
aqueue.c \
askpass.c \
Expand Down Expand Up @@ -118,6 +117,7 @@ liblib_la_SOURCES = \
ostream-null.c \
ostream-rawlog.c \
ostream-unix.c \
path-util.c \
pkcs5.c \
primes.c \
printf-format-fix.c \
Expand Down Expand Up @@ -158,7 +158,6 @@ liblib_la_SOURCES = \
write-full.c

headers = \
abspath.h \
aqueue.h \
array.h \
array-decl.h \
Expand Down Expand Up @@ -260,6 +259,7 @@ headers = \
ostream-null.h \
ostream-rawlog.h \
ostream-unix.h \
path-util.h \
pkcs5.h \
primes.h \
printf-format-fix.h \
Expand Down
2 changes: 1 addition & 1 deletion src/lib/eacces-error.c
Expand Up @@ -2,7 +2,7 @@

#include "lib.h"
#include "str.h"
#include "abspath.h"
#include "path-util.h"
#include "ipwd.h"
#include "restrict-access.h"
#include "eacces-error.h"
Expand Down
1 change: 0 additions & 1 deletion src/lib/nfs-workarounds.c
Expand Up @@ -28,7 +28,6 @@
*/

#include "lib.h"
#include "abspath.h"
#include "nfs-workarounds.h"

#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/abspath.c → src/lib/path-util.c
Expand Up @@ -2,7 +2,7 @@

#include "lib.h"
#include "str.h"
#include "abspath.h"
#include "path-util.h"

#include <unistd.h>

Expand Down
4 changes: 2 additions & 2 deletions src/lib/abspath.h → src/lib/path-util.h
@@ -1,5 +1,5 @@
#ifndef ABSPATH_H
#define ABSPATH_H
#ifndef PATH_UTIL_H
#define PATH_UTIL_H

/* Returns path as absolute path. If it's not already absolute path,
it's assumed to be relative to current working directory. */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/unlink-directory.c
Expand Up @@ -33,7 +33,7 @@
#define _GNU_SOURCE /* for O_NOFOLLOW with Linux */

#include "lib.h"
#include "abspath.h"
#include "path-util.h"
#include "unlink-directory.h"

#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lmtp/main.c
Expand Up @@ -4,7 +4,7 @@
#include "array.h"
#include "ioloop.h"
#include "hostpid.h"
#include "abspath.h"
#include "path-util.h"
#include "restrict-access.h"
#include "fd-close-on-exec.h"
#include "anvil-client.h"
Expand Down
2 changes: 1 addition & 1 deletion src/master/main.c
Expand Up @@ -8,7 +8,7 @@
#include "write-full.h"
#include "env-util.h"
#include "hostpid.h"
#include "abspath.h"
#include "path-util.h"
#include "ipwd.h"
#include "str.h"
#include "execv-const.h"
Expand Down
2 changes: 1 addition & 1 deletion src/pop3/main.c
Expand Up @@ -5,7 +5,7 @@
#include "buffer.h"
#include "istream.h"
#include "ostream.h"
#include "abspath.h"
#include "path-util.h"
#include "base64.h"
#include "str.h"
#include "process-title.h"
Expand Down

0 comments on commit dfa2201

Please sign in to comment.