/[gentoo-projects]/pax-utils/scanelf.c
Gentoo

Diff of /pax-utils/scanelf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1/* 1/*
2 * Copyright 2003 Ned Ludd <solar@gentoo.org> 2 * Copyright 2003 Ned Ludd <solar@gentoo.org>
3 * Copyright 1999-2003 Gentoo Technologies, Inc. 3 * Copyright 1999-2003 Gentoo Technologies, Inc.
4 * Distributed under the terms of the GNU General Public License v2 4 * Distributed under the terms of the GNU General Public License v2
5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.1 2003/10/24 22:19:20 solar Exp $ 5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.2 2003/10/24 22:29:06 solar Exp $
6 * 6 *
7 ******************************************************************** 7 ********************************************************************
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the 10 * published by the Free Software Foundation; either version 2 of the
37#include <dirent.h> 37#include <dirent.h>
38#include <getopt.h> 38#include <getopt.h>
39 39
40#include "paxelf.h" 40#include "paxelf.h"
41 41
42static const char *rcsid = "$Id: scanelf.c,v 1.1 2003/10/24 22:19:20 solar Exp $"; 42static const char *rcsid = "$Id: scanelf.c,v 1.2 2003/10/24 22:29:06 solar Exp $";
43 43
44int display_pax_flags = 1; 44int display_pax_flags = 1;
45 45
46#define PARSE_FLAGS "hvlp" 46#define PARSE_FLAGS "hvlp"
47static struct option const long_options[] = { 47static struct option const long_options[] = {
133 if (*path == '/') { 133 if (*path == '/') {
134 if ((p = strrchr(path, '\r')) != NULL) 134 if ((p = strrchr(path, '\r')) != NULL)
135 *p = 0; 135 *p = 0;
136 if ((p = strrchr(path, '\n')) != NULL) 136 if ((p = strrchr(path, '\n')) != NULL)
137 *p = 0; 137 *p = 0;
138 puts(path); 138 scanelf(path);
139 } 139 }
140 } 140 }
141 free(path); 141 free(path);
142 } 142 }
143 break; 143 break;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20