Displaying 20 results from an estimated 4000 matches similar to: "[Bug 1448] Report wrong command-line options"
2008 Mar 17
3
[Bug 1448] New: Report wrong command-line options
https://bugzilla.mindrot.org/show_bug.cgi?id=1448
Summary: Report wrong command-line options
Classification: Unclassified
Product: Portable OpenSSH
Version: 4.6p1
Platform: Other
2002 Jun 16
1
multiple definition of `optind'
Any ideas of the best way around this problem? Should I just hack the
source code, or is there a magic switch somewhere I'm missing? I'm
assuming I can't just dismiss that function as OpenSSH is probably
based on the OpenBSD semantics.
=============================================================================
gcc -g -O2 -Wall -Wno-uninitialized -I. -I.
2003 Sep 10
3
[PATCH] No extern declarations of optarg & co if getopt.h is available
Hi,
I have a problem with the extern declarations of optarg, optind, etc.
We're currently moving getopt from being a statically linked function
to a dynamically linked function as part of the Cygwin DLL. On Windows,
this requires to generate special symbols (__imp__optarg, etc.), which
is done by marking the exported variables in the corresponding header.
Instead of
extern char *optarg;
2018 Jun 28
1
[nbdkit PATCH] main: More idiomatic use of getopt_long
Prefer named constants over magic numbers in the 'struct option'
list, and expand the list of enums for long-only options so that
the call to getopt_long() can switch directly to every option,
rather than needing a lengthy if/else chain that grows for every
new long option.
Patch best viewed with whitespace changes ignored.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
2010 Sep 03
1
[PATCH] New '-o' option to configure server or hosts from command line
Options given on the command line have precedence over configuration
from files.
This can be useful, for example, for a roaming node, for which
'ConnectTo' and <host>.Address depends on its location.
---
This patch is against stable branch. Merging this patch to the 1.1
branch is trivial.
I use this patch on my Debian for several weeks.
Here is the ifupdown script I use (some
2018 Nov 14
2
Re: [PATCH 2/2] build: Replace ./nbdkit with a C program.
On 11/13/18 4:51 PM, Richard W.M. Jones wrote:
> There are advantages to having the same code parse the options in the
> ./nbdkit wrapper as in the real nbdkit:
>
> - We can parse options in exactly the same way as the real program.
>
> - Use the more accurate ‘is_short_name’ test for unadorned
> plugin/filter names on the command line.
>
> - Fixes the FreeBSD
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
Like with the previous commit, this replaces instances of:
if (something_bad) {
fprintf (stderr, "%s: error message\n", guestfs_int_program_name);
exit (EXIT_FAILURE);
}
with:
if (something_bad)
error (EXIT_FAILURE, 0, "error message");
(except in a few cases were errno was incorrectly being ignored, in
which case I have fixed that).
It's slightly
2011 Apr 18
7
[PATCH] tools: xl: on create, if debug && !daemonize, wait for domain destroy in the foreground
# HG changeset patch
# User Ian Campbell <ian.campbell@citrix.com>
# Date 1303143831 -3600
# Node ID 31b98feb0eb6a50fe9e664a31feaa32ad3dac7cc
# Parent 05abea47f4dc670974cd513a0e74db54d22eacc9
tools: xl: on create, if debug && !daemonize, wait for domain destroy in the foreground
Perhaps this should be a separate option but I find that when I''m debugging xl
in the
2009 Apr 14
2
Missing getopt_long in Solaris 8 Sparc
Hi,
I have problems compiling speex 1.2rc1:
> /opt/studio/SOS11/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -
> I.. -I../include -I../include -I.. -I/opt/csw/include -I/opt/csw/
> include -xO3 -xarch=v8 -I/opt/csw/include -c skeleton.c
> /bin/bash ../libtool --mode=link /opt/studio/SOS11/SUNWspro/bin/cc -
> xO3 -xarch=v8 -I/opt/csw/include -xarch=v8 -L/opt/csw/lib -o
2018 Nov 14
3
[PATCH nbdkit v2 0/2] build: Replace ./nbdkit with a C program.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-November/msg00147.html
v2:
- Use stdbool for booleans.
- Use __attribute__((format(printf))).
- Don't abort on invalid options, exit with failure instead.
- Preserve long/short option choices in the output.
- Add '=' in long option output, ie. always use --longopt=arg.
- Add "--" parameter
2020 Jun 18
1
[PATCH] Kbuild for klibc and nfsmount: fix multiple definitions
-fcommon is not default anymore, with GCC 10 you get the following
failure without it:
KLIBCLD usr/klibc/libc.so
ppc-linux-ld: usr/klibc/globals.o:/root/packages/klibc-2.0.7/usr/klibc/../include/unistd.h:15: multiple definition of `environ'; usr/klibc/__shared_init.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/libc_init.c:42: first defined here
ppc-linux-ld:
2012 Aug 06
1
[PATCH V2] virt-diff: add new virt-diff tool
add new virt-diff tool
Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com>
---
Hi Rich,
It can work now, please give some comments. ;)
Cheers,
Wanlong Gao
cat/Makefile.am | 20 ++-
cat/virt-diff.c | 525 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
po/POTFILES | 1 +
3 files changed, 545 insertions(+), 1 deletion(-)
create mode 100644 cat/virt-diff.c
diff
2004 Aug 06
1
patch for compiling on IRIX
The following patch (based off of the current CVS tree) is necessary
to compile Speex on IRIX (or any other system that doesn't include
getopt_long in the system libraries).
I would suggest further that src/getopt_win.h be renamed to getopt_long.h
since it's not just Windows that lacks getopt_long.
Michael
Index: configure.in
2018 Nov 14
5
[PATCH nbdkit v3 0/4] build: Replace ./nbdkit with a C program.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-November/msg00147.html
v2 was here:
https://www.redhat.com/archives/libguestfs/2018-November/msg00152.html
v3:
- Use optarg != NULL as a sentinel for has_arg.
- Moved some variable decls into the inner loop.
- Make nbdkit wrapper depend on config.status, so if srcdir or
builddir changes then we rebuild the wrapper. It
2009 Apr 17
1
Missing getopt_long in Solaris 8 Sparc
Hi Jean-Marc,
Am 17.04.2009 um 13:35 schrieb Jean-Marc Valin:
> It should be using getopt1.c when getopt isn't available.c. Can you
> check why it doesn't? In any case, that's only required for the Ogg
> tools, not for the library.
config.log says
ac_cv_func_getopt_long=no
ac_cv_header_getopt_h=no
ac_cv_lib_gnugetopt_getopt_long=no
LIBOBJS='
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did:
if (something_bad) {
perror (...);
exit (EXIT_FAILURE);
}
replace this with use of the error(3) function:
if (something_bad)
error (EXIT_FAILURE, errno, ...);
The error(3) function is supplied by glibc, or by gnulib on platforms
which don't have it, and is much more flexible than perror(3). Since
we already use error(3), there seems to be
2018 Nov 13
3
[PATCH 0/2] build: Replace ./nbdkit with a C program.
This patch series solves the FreeBSD shebang problem in a completely
different way, and a few other things besides. I propose that we
replace ./nbdkit with a C program. The C program is a straightforward
translation of the shell script.
Some advantages of this approach are:
- We can parse options in exactly the same way as the real program.
- Use the more accurate ‘is_short_name’ test for
2003 Mar 09
0
ogg123 --end 1:59 patch.ogg
Hi
Here is another patch regarding time in ogg123 which is more
controvercial than the other one I send some days ago. (see
attachment)
When working with Daisy/SMIL [1] files it would be helpfull if the
user could stop play at a specific time. Currently .ogg files are not
allowed in the Daisy format but that will hopefully happen one day if
I work hard at it.
A clip in a Daisy file could look
2018 Nov 14
0
[PATCH nbdkit v2 2/2] build: Replace ./nbdkit with a C program.
There are advantages to having the same code parse the options in the
./nbdkit wrapper as in the real nbdkit:
- We can parse options in exactly the same way as the real program.
- Use the more accurate ‘is_short_name’ test for unadorned
plugin/filter names on the command line.
- Fixes the FreeBSD problem with shebangs caused because FreeBSD
refuses to use a shell script as a shebang path.
2004 Aug 31
1
[PATCH] supporting a remote scp path option in scp
Hi there,
I've written some enhancements to scp.c and pathnames.h to enable the scp
to arbitrarily set the remote scp path.
(eg $ scp -e /usr/bin/scp foo user at bar:foo)
I did read the "scp: command not found" FAQ entry but I'm not quite sure
why we can't do this, unless it's because enhancements to scp are no
longer a priority. Any other reason why it "is the