Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some minor changes #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Set to 'yes' to include debugging information, e.g. DEBUG=yes make -e
DEBUG := no
DEBUG := yes
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why debug build by default?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, that's a change I made in order to build the debug rpm and I forgot switch to no again. Please ignore it.


PREFIX ?= /usr
LIBDIR ?= lib
ARCH := $(shell getconf LONG_BIT)
ifeq ($(ARCH),64)
LIBDIR := lib64
else
LIBDIR := lib
endif

# compiler/linker options
CC := gcc
Expand Down Expand Up @@ -43,11 +48,11 @@ TOOLS_SRC := tools

# Conf
CONFS := doc/pamusb.conf
CONFS_DEST := $(DESTDIR)/etc
CONFS_DEST := $(DESTDIR)/etc/security

# Doc
DOCS := doc/CONFIGURATION.md
DOCS_DEST := $(DESTDIR)$(PREFIX)/share/doc/pamusb
DOCS_DEST := $(DESTDIR)$(PREFIX)/share/doc/pam_usb

# Man
MANS := doc/pamusb-conf.1.gz doc/pamusb-agent.1.gz doc/pamusb-check.1.gz
Expand Down
4 changes: 2 additions & 2 deletions src/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <sys/utsname.h>
Expand Down
4 changes: 2 additions & 2 deletions src/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_CONF_H_
Expand Down
4 changes: 2 additions & 2 deletions src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <unistd.h>
Expand Down
4 changes: 2 additions & 2 deletions src/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_DEVICE_H_
Expand Down
4 changes: 2 additions & 2 deletions src/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions src/hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_HAL_H_
Expand Down
4 changes: 2 additions & 2 deletions src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions src/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_LOCAL_H_
Expand Down
4 changes: 2 additions & 2 deletions src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions src/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_LOG_H_
Expand Down
4 changes: 2 additions & 2 deletions src/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions src/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_MEM_H_
Expand Down
4 changes: 2 additions & 2 deletions src/pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions src/pad.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_OTP_H_
Expand Down
4 changes: 2 additions & 2 deletions src/pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#define PAM_SM_AUTH
Expand Down
4 changes: 2 additions & 2 deletions src/pamusb-check.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_VERSION_H_
Expand Down
4 changes: 2 additions & 2 deletions src/volume.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions src/volume.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef VOLUME_H_
Expand Down
4 changes: 2 additions & 2 deletions src/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include <libxml/xpath.h>
Expand Down
4 changes: 2 additions & 2 deletions src/xpath.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef PUSB_XPATH_H_
Expand Down
4 changes: 2 additions & 2 deletions tools/pamusb-agent
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301 USA.

import os
import sys
Expand Down
4 changes: 2 additions & 2 deletions tools/pamusb-conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
# Street, Fifth Floor, Boston, MA 02110-1301 USA.


import dbus
Expand Down