Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
python-libmount.12160
util-linux-sfdisk-show-pt-geometry-1.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-sfdisk-show-pt-geometry-1.patch of Package python-libmount.12160
From f7c6c31f08a0f72e13527f2de368686dd77ad66c Mon Sep 17 00:00:00 2001 From: Stanislav Brabec <sbrabec@suse.cz> Date: Thu, 4 Aug 2016 20:15:57 +0200 Subject: [PATCH 1/3] sfdisk: Add --show-pt-geometry compatibility code --show-pt-geometry existed since cf3f26bf (2006), and it is used by third party tools. To prevent failure of these tools, add a minimal compatibility code. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz> --- disk-utils/sfdisk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: util-linux-2.28/disk-utils/sfdisk.c =================================================================== --- util-linux-2.28.orig/disk-utils/sfdisk.c +++ util-linux-2.28/disk-utils/sfdisk.c @@ -1836,6 +1836,7 @@ int main(int argc, char *argv[]) { "reorder", no_argument, NULL, 'r' }, { "show-size", no_argument, NULL, 's' }, { "show-geometry", no_argument, NULL, 'g' }, + { "show-pt-geometry", no_argument, NULL, 'G' }, { "quiet", no_argument, NULL, 'q' }, { "verify", no_argument, NULL, 'V' }, { "version", no_argument, NULL, 'v' }, @@ -1861,7 +1862,7 @@ int main(int argc, char *argv[]) textdomain(PACKAGE); atexit(close_stdout); - while ((c = getopt_long(argc, argv, "aAbcdfFghJlLo:O:nN:qrsTu:vVX:Y:w:", + while ((c = getopt_long(argc, argv, "aAbcdfFgGhJlLo:O:nN:qrsTu:vVX:Y:w:", longopts, &longidx)) != -1) { switch(c) { case 'A': @@ -1896,6 +1897,8 @@ int main(int argc, char *argv[]) case 'f': sf->force = 1; break; + case 'G': + warnx(_("--show-pt-geometry is no more implemented. Using --show-geometry.")); case 'g': sf->act = ACT_SHOW_GEOM; break;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor