summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-01-27 15:57:02 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-01-27 15:57:02 +0000
commitfeb887039ef36e0b535565aa9388bf4f37202a63 (patch)
tree1201a1fc4569a75240f7a90348e0d5b49e8a4ad1 /usr.sbin
parentc0df24b30ba77526098c5236779317c694961265 (diff)
err, actually session_set_path was moved to utils.c because it was used by
the enqueue code i'm working on, but this is no longer necessary since the enqueue code uses recipient_to_path. revert part of previous commit
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/util.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c
index 360bd8297bc..edcaf7ef403 100644
--- a/usr.sbin/smtpd/util.c
+++ b/usr.sbin/smtpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.7 2009/01/27 15:50:15 gilles Exp $ */
+/* $OpenBSD: util.c,v 1.8 2009/01/27 15:57:01 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -145,18 +145,3 @@ recipient_to_path(struct path *path, char *recipient)
return 1;
}
-
-int
-session_set_path(struct path *path, char *line)
-{
- size_t len;
- char *username;
- char *hostname;
-
- len = strlen(line);
- if (*line != '<' || line[len - 1] != '>')
- return 0;
- line[len - 1] = '\0';
-
- return recipient_to_path(path, line+1);
-}