Hello community,

here is the log from the commit of package gptfdisk for openSUSE:Factory 
checked in at 2015-10-30 16:34:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gptfdisk (Old)
 and      /work/SRC/openSUSE:Factory/.gptfdisk.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gptfdisk"

Changes:
--------
--- /work/SRC/openSUSE:Factory/gptfdisk/gptfdisk.changes        2015-03-30 
19:10:04.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gptfdisk.new/gptfdisk.changes   2015-10-30 
16:34:52.000000000 +0100
@@ -1,0 +2,8 @@
+Mon Oct 26 14:25:43 UTC 2015 - [email protected]
+
+- Update to new upstream release 1.0.1
+  * new type codes
+  * bug fixes
+  * changes to the OS X build for OS X 10.11 ("El Capitan")
+
+-------------------------------------------------------------------

Old:
----
  gptfdisk-1.0.0.tar.gz

New:
----
  gptfdisk-1.0.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gptfdisk.spec ++++++
--- /var/tmp/diff_new_pack.Uc9Xz4/_old  2015-10-30 16:34:53.000000000 +0100
+++ /var/tmp/diff_new_pack.Uc9Xz4/_new  2015-10-30 16:34:53.000000000 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           gptfdisk
-Version:        1.0.0
+Version:        1.0.1
 Release:        0
 Summary:        GPT partitioning and MBR repair software
 License:        GPL-2.0

++++++ gptfdisk-1.0.0.tar.gz -> gptfdisk-1.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/Makefile new/gptfdisk-1.0.1/Makefile
--- old/gptfdisk-1.0.0/Makefile 2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/Makefile 2015-10-19 00:35:18.000000000 +0200
@@ -28,6 +28,9 @@
 fixparts: $(MBR_LIB_OBJS) fixparts.o
        $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts
 
+test:
+       ./gdisk_test.sh
+
 lint:  #no pre-reqs
        lint $(SRCS)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/Makefile.mac 
new/gptfdisk-1.0.1/Makefile.mac
--- old/gptfdisk-1.0.0/Makefile.mac     2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/Makefile.mac     2015-10-19 00:35:18.000000000 +0200
@@ -1,8 +1,9 @@
 CC=gcc
-CXX=g++
-CFLAGS=-O2 -D_FILE_OFFSET_BITS=64 -g
-#CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/sw/include 
-I/usr/local/include -I/opt/local/include -g
-CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -I/sw/include -I /usr/local/include 
-I/opt/local/include -g
+CXX=clang++
+FATBINFLAGS=-arch x86_64 -arch i386 -mmacosx-version-min=10.4
+CFLAGS=$(FATBINFLAGS) -O2 -D_FILE_OFFSET_BITS=64 -g
+#CXXFLAGS=-O2 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -I/opt/local/include 
-I/usr/local/include -I/opt/local/include -g
+CXXFLAGS=$(FATBINFLAGS) -O2 -Wall -D_FILE_OFFSET_BITS=64 -I/opt/local/include 
-I /usr/local/include -I/opt/local/include -g
 LIB_NAMES=crc32 support guid gptpart mbrpart basicmbr mbr gpt bsd parttypes 
attributes diskio diskio-unix
 MBR_LIBS=support diskio diskio-unix basicmbr mbrpart
 #LIB_SRCS=$(NAMES:=.cc)
@@ -14,19 +15,20 @@
 all:   gdisk sgdisk cgdisk fixparts
 
 gdisk: $(LIB_OBJS) gpttext.o gdisk.o
-       $(CXX) $(LIB_OBJS) gpttext.o gdisk.o -o gdisk
+       $(CXX) $(LIB_OBJS) gpttext.o gdisk.o $(FATBINFLAGS) -o gdisk
 #      $(CXX) $(LIB_OBJS) -L/usr/lib -licucore gpttext.o gdisk.o -o gdisk
 
 cgdisk: $(LIB_OBJS) cgdisk.o gptcurses.o
-       $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -lncurses -o cgdisk
+       $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o /opt/local/lib/libncurses.a 
$(LDFLAGS) $(FATBINFLAGS) -o cgdisk
 #      $(CXX) $(LIB_OBJS) cgdisk.o gptcurses.o $(LDFLAGS) -licucore -lncurses 
-o cgdisk
 
 sgdisk: $(LIB_OBJS) gptcl.o sgdisk.o
-       $(CXX) $(LIB_OBJS) gptcl.o sgdisk.o -L/sw/lib -lpopt -o sgdisk
+#      $(CXX) $(LIB_OBJS) gptcl.o sgdisk.o /opt/local/lib/libiconv.a 
/opt/local/lib/libintl.a /opt/local/lib/libpopt.a $(FATBINFLAGS) -o sgdisk
+       $(CXX) $(LIB_OBJS) gptcl.o sgdisk.o -L/opt/local/lib -lpopt 
$(FATBINFLAGS) -o sgdisk
 #      $(CXX) $(LIB_OBJS) gptcl.o sgdisk.o -L/sw/lib -licucore -lpopt -o sgdisk
 
 fixparts: $(MBR_LIB_OBJS) fixparts.o
-       $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) -o fixparts
+       $(CXX) $(MBR_LIB_OBJS) fixparts.o $(LDFLAGS) $(FATBINFLAGS) -o fixparts
 
 testguid:      $(LIB_OBJS) testguid.o
        $(CXX) $(LIB_OBJS) testguid.o -o testguid
@@ -35,7 +37,7 @@
        lint $(SRCS)
 
 clean: #no pre-reqs
-       rm -f core *.o *~ gdisk sgdisk
+       rm -f core *.o *~ gdisk sgdisk cgdisk fixparts
 
 # what are the source dependencies
 depend: $(SRCS)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/NEWS new/gptfdisk-1.0.1/NEWS
--- old/gptfdisk-1.0.0/NEWS     2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/NEWS     2015-10-19 00:35:18.000000000 +0200
@@ -1,3 +1,81 @@
+1.0.1 (10/18/2015):
+-------------------
+
+- Fixed bug that caused -N/--largest-new option to sgdisk to fail when
+  fed a "0" option.
+
+- Fixed bug that caused input glitches in EFI version of gdisk.
+
+- Fixed bug that caused sgdisk to not return an appropriate error code
+  when it encountered a write error when saving changes.
+
+- Fixed bug that caused cgdisk's "Info" display to under-report the
+  partition's size by one sector.
+
+- OS X 10.11 includes new security features that prevent GPT fdisk from
+  working unless these features are disabled. To do so, you must boot to a
+  Recovery HD system, open a Terminal, type "csrutil disable", and reboot
+  into the normal system. You can re-enable the security features by
+  repeating the process, but specify "enable" rather than "disable". I've
+  added a message pointing users to a Web page explaining how to disable
+  this feature when gdisk detects that it can't write to the disk under OS
+  X. If you know of a way around this (including code changes to gdisk),
+  please contact me.
+
+- I've updated the OS X installation location from the Unix-standard
+  /usr/sbin (and related locations for documentation) to /usr/local/bin
+  (and related locations for documentation). This is Just Plain Crazy from
+  a Unix point of view, but Apple has to be Apple and do things just a
+  little bit differently.
+
+- I've updated my OS X environment to OS X 10.11 and LLVM 7.0.0. This has
+  also meant installing fresh versions of popt and ncurses from MacPorts,
+  which may require upgrading popt to get sgdisk working on some systems.
+  (gdisk, cgdisk, and fixparts should continue to work normally on all
+  systems.) The OS X binaries are now "fat" (32- and 64-bit) versions,
+  which should have no noticeable effect unless you have a Mac with broken
+  32-bit support, in which case the binaries will now work.
+
+- Changed the default name of 0xab00 partitions from "Apple boot" to
+  "Recovery HD", since the latter is the name that Apple gives these
+  partitions. Also, I discovered through painful experience that OS X
+  flakes out and won't boot if the name is something other than "Recovery
+  HD", so it really has to have the right name!
+
+- Changed the OpenBSD type codes (0xa600 and 0xa601): 0xa600 is now
+  824CC7A0-36A8-11E3-890A-952519AD3F61 (OpenBSD disklabel) and 0xa601 is
+  now gone. Previously, 0xa600 was 516E7CB4-6ECF-11D6-8FF8-00022D09712B, a
+  duplicate of the FreeBSD disklabel, and 0xa601 was
+  824CC7A0-36A8-11E3-890A-952519AD3F61. OpenBSD is now officially
+  supporting 824CC7A0-36A8-11E3-890A-952519AD3F61 as a disklabel type,
+  though. It's unclear what, if anything, OpenBSD will use for
+  non-disklabel type codes at the moment.
+
+- Added GUID 0311FC50-01CA-4725-AD77-9ADBB20ACE98 (0xbc00) for
+  Acronis Secure Zone backup partitions.
+
+- Fixed bug that caused random crashes on ppc64el systems (and perhaps
+  others).
+
+- Added GUID C91818F9-8025-47AF-89D2-F030D7000C2C (0x3900) for Plan 9.
+
+- Added GUID 69DAD710-2CE4-4E3C-B16C-21A1D49ABED3 (0x8307) for 32-bit ARM
+  Linux root (/) partition, as per the Freedesktop.org Discoverable
+  Partition Spec
+  (http://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/).
+
+- Edited man pages to clarify that default alignment is to 1MiB boundaries;
+  this translates to 2048 sectors on disks with 512-byte sectors, but it
+  will be something else on disks with other sector sizes.
+
+- Changed behavior of -z/--zap and -Z/--zap-all options to sgdisk so that
+  if a subsequent command causes changes, they'll be written to disk.
+  Previously, doing something like "sgdisk --zap-all --clear /dev/sdd"
+  would wipe the disk but not create a partition table; to create a blank
+  table you'd need to do "sgdisk --zap-all --clear --mbrtogpt /dev/sdd",
+  which is a bit odd and counter-intuitive, to the point of arguably being
+  a bug.
+
 1.0.0 (3/16/2015):
 ------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/README new/gptfdisk-1.0.1/README
--- old/gptfdisk-1.0.0/README   2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/README   2015-10-19 00:35:18.000000000 +0200
@@ -200,11 +200,12 @@
   (headers). Most Linux distributions install popt by default, but you may
   need to install a package called popt-dev, popt-devel, or something
   similar to obtain the header files. Mac OS users can find a version of
-  popt for Mac OS from Darwin Ports (http://popt.darwinports.com) or Fink
-  (http://www.finkproject.org); however, you'll first need to install
-  DarwinPorts or Fink (instructions exist on the relevant projects' pages).
-  Alternatively, you can compile gdisk and/or cgdisk alone, without sgdisk;
-  gdisk doesn't require popt.
+  popt for Mac OS from Darwin Ports (http://popt.darwinports.com), MacPorts
+  (https://trac.macports.org/browser/trunk/dports/devel/popt/Portfile), or
+  Fink (http://www.finkproject.org);  however, you'll first need to install
+  DarwinPorts, MacPorts, or Fink (instructions exist on the relevant
+  projects' pages). Alternatively, you can compile gdisk and/or cgdisk
+  alone, without sgdisk; gdisk doesn't require popt.
 
 When all the necessary development tools and libraries are installed, you
 can uncompress the package and type "make" at the command prompt in the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/cgdisk.8 new/gptfdisk-1.0.1/cgdisk.8
--- old/gptfdisk-1.0.0/cgdisk.8 2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/cgdisk.8 2015-10-19 00:35:18.000000000 +0200
@@ -1,6 +1,6 @@
-.\" Copyright 2011-2013 Roderick W. Smith ([email protected])
+.\" Copyright 2011-2015 Roderick W. Smith ([email protected])
 .\" May be distributed under the GNU General Public License
-.TH "CGDISK" "8" "1.0.0" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "CGDISK" "8" "1.0.1" "Roderick W. Smith" "GPT fdisk Manual"
 .SH "NAME"
 cgdisk \- Curses-based GUID partition table (GPT) manipulator
 .SH "SYNOPSIS"
@@ -181,12 +181,13 @@
 physical sectors (such as modern Advanced Format drives), some RAID
 configurations, and many SSD devices, can suffer performance problems if
 partitions are not aligned properly for their internal data structures. On
-new disks, GPT fdisk attempts to align partitions on 2048\-sector (1MiB)
-boundaries by default, which optimizes performance for all of these disk
-types. On pre\-partitioned disks, GPT fdisk attempts to identify the
-alignment value used on that disk, but will set 8-sector alignment on disks
-larger than 300 GB even if lesser alignment values are detected. In either
-case, it can be changed by using this option.
+new disks, GPT fdisk attempts to align partitions on 1MiB boundaries
+(2048\-sectors on disks with 512-byte sectors) by default, which optimizes
+performance for all of these disk types. On pre\-partitioned disks, GPT
+fdisk attempts to identify the alignment value used on that disk, but will
+set 8-sector alignment on disks larger than 300 GB even if lesser alignment
+values are detected. In either case, it can be changed by using this
+option.
 
 .TP 
 .B Backup
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/cgdisk.html 
new/gptfdisk-1.0.1/cgdisk.html
--- old/gptfdisk-1.0.0/cgdisk.html      2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/cgdisk.html      2015-10-19 00:35:18.000000000 +0200
@@ -4,7 +4,7 @@
 <HTML><HEAD><TITLE>Man page of CGDISK</TITLE>
 </HEAD><BODY>
 <H1>CGDISK</H1>
-Section: GPT fdisk Manual (8)<BR>Updated: 1.0.0<BR><A HREF="#index">Index</A>
+Section: GPT fdisk Manual (8)<BR>Updated: 1.0.1<BR><A HREF="#index">Index</A>
 <A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
 
 <A NAME="lbAB">&nbsp;</A>
@@ -222,12 +222,13 @@
 physical sectors (such as modern Advanced Format drives), some RAID
 configurations, and many SSD devices, can suffer performance problems if
 partitions are not aligned properly for their internal data structures. On
-new disks, GPT fdisk attempts to align partitions on 2048-sector (1MiB)
-boundaries by default, which optimizes performance for all of these disk
-types. On pre-partitioned disks, GPT fdisk attempts to identify the
-alignment value used on that disk, but will set 8-sector alignment on disks
-larger than 300 GB even if lesser alignment values are detected. In either
-case, it can be changed by using this option.
+new disks, GPT fdisk attempts to align partitions on 1MiB boundaries
+(2048-sectors on disks with 512-byte sectors) by default, which optimizes
+performance for all of these disk types. On pre-partitioned disks, GPT
+fdisk attempts to identify the alignment value used on that disk, but will
+set 8-sector alignment on disks larger than 300 GB even if lesser alignment
+values are detected. In either case, it can be changed by using this
+option.
 <P>
 <DT><B>Backup</B>
 
@@ -478,6 +479,6 @@
 This document was created by
 <A HREF="/cgi-bin/man/man2html">man2html</A>,
 using the manual pages.<BR>
-Time: 22:50:38 GMT, March 17, 2015
+Time: 22:35:18 GMT, October 18, 2015
 </BODY>
 </HTML>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/current.spec 
new/gptfdisk-1.0.1/current.spec
--- old/gptfdisk-1.0.0/current.spec     2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/current.spec     2015-10-19 00:35:18.000000000 +0200
@@ -1,12 +1,12 @@
 Summary: GPT partitioning and MBR repair software
 Name: gptfdisk
-Version: 1.0.0
+Version: 1.0.1
 
 Release: 1%{?dist}
 License: GPLv2
 URL: http://www.rodsbooks.com/gdisk
 Group: Applications/System
-Source: http://www.rodsbooks.com/gdisk/gptfdisk-1.0.0.tar.gz
+Source: http://www.rodsbooks.com/gdisk/gptfdisk-1.0.1.tar.gz
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 %description
@@ -81,5 +81,5 @@
 
 
 %changelog
-* Sun Mar 2 2014 R Smith <[email protected]> - 1.0.0
-- Created spec file for 1.0.0 release
+* Sun Mar 2 2014 R Smith <[email protected]> - 1.0.1
+- Created spec file for 1.0.1 release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/diskio-unix.cc 
new/gptfdisk-1.0.1/diskio-unix.cc
--- old/gptfdisk-1.0.0/diskio-unix.cc   2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/diskio-unix.cc   2015-10-19 00:35:18.000000000 +0200
@@ -74,7 +74,8 @@
          if (fstat64(fd, &st) == 0) {
             if (S_ISDIR(st.st_mode))
                cerr << "The specified path is a directory!\n";
-#if !defined(__FreeBSD__) && !defined(__APPLE__)
+#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \
+                       && !defined(__APPLE__)
             else if (S_ISCHR(st.st_mode))
                cerr << "The specified path is a character device!\n";
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/fixparts.8 
new/gptfdisk-1.0.1/fixparts.8
--- old/gptfdisk-1.0.0/fixparts.8       2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/fixparts.8       2015-10-19 00:35:18.000000000 +0200
@@ -1,6 +1,6 @@
-.\" Copyright 2011-2013 Roderick W. Smith ([email protected])
+.\" Copyright 2011-2015 Roderick W. Smith ([email protected])
 .\" May be distributed under the GNU General Public License
-.TH "FIXPARTS" "8" "1.0.0" "Roderick W. Smith" "FixParts Manual"
+.TH "FIXPARTS" "8" "1.0.1" "Roderick W. Smith" "FixParts Manual"
 .SH "NAME"
 fixparts \- MBR partition table repair utility
 .SH "SYNOPSIS"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/fixparts.html 
new/gptfdisk-1.0.1/fixparts.html
--- old/gptfdisk-1.0.0/fixparts.html    2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/fixparts.html    2015-10-19 00:35:18.000000000 +0200
@@ -4,7 +4,7 @@
 <HTML><HEAD><TITLE>Man page of FIXPARTS</TITLE>
 </HEAD><BODY>
 <H1>FIXPARTS</H1>
-Section: FixParts Manual (8)<BR>Updated: 1.0.0<BR><A HREF="#index">Index</A>
+Section: FixParts Manual (8)<BR>Updated: 1.0.1<BR><A HREF="#index">Index</A>
 <A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
 
 <A NAME="lbAB">&nbsp;</A>
@@ -357,6 +357,6 @@
 This document was created by
 <A HREF="/cgi-bin/man/man2html">man2html</A>,
 using the manual pages.<BR>
-Time: 22:50:38 GMT, March 17, 2015
+Time: 22:35:18 GMT, October 18, 2015
 </BODY>
 </HTML>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/gdisk.8 new/gptfdisk-1.0.1/gdisk.8
--- old/gptfdisk-1.0.0/gdisk.8  2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/gdisk.8  2015-10-19 00:35:18.000000000 +0200
@@ -1,6 +1,6 @@
-.\" Copyright 2011-2013 Roderick W. Smith ([email protected])
+.\" Copyright 2011-2015 Roderick W. Smith ([email protected])
 .\" May be distributed under the GNU General Public License
-.TH "GDISK" "8" "1.0.0" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "GDISK" "8" "1.0.1" "Roderick W. Smith" "GPT fdisk Manual"
 .SH "NAME"
 gdisk \- Interactive GUID partition table (GPT) manipulator
 .SH "SYNOPSIS"
@@ -212,7 +212,8 @@
 .B o
 Clear out all partition data. This includes GPT header data,
 all partition definitions, and the protective MBR. The sector alignment
-is reset to the default (2048 sectors, or 1MB).
+is reset to the default (1MB, or 2048 sectors on a disk with 512-byte
+sectors).
 
 .TP 
 .B p
@@ -470,12 +471,13 @@
 physical sectors (such as modern Advanced Format drives), some RAID
 configurations, and many SSD devices, can suffer performance problems if
 partitions are not aligned properly for their internal data structures. On
-new disks, GPT fdisk attempts to align partitions on 2048\-sector (1MiB)
-boundaries by default, which optimizes performance for all of these disk
-types. On pre\-partitioned disks, GPT fdisk attempts to identify the
-alignment value used on that disk, but will set 8-sector alignment on disks
-larger than 300 GB even if lesser alignment values are detected. In either
-case, it can be changed by using this option.
+new disks, GPT fdisk attempts to align partitions on 1MiB boundaries
+(2048\-sectors on disks with 512-byte sectors) by default, which optimizes
+performance for all of these disk types. On pre\-partitioned disks, GPT
+fdisk attempts to identify the alignment value used on that disk, but will
+set 8-sector alignment on disks larger than 300 GB even if lesser alignment
+values are detected. In either case, it can be changed by using this
+option.
 
 .TP 
 .B m
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/gdisk.html 
new/gptfdisk-1.0.1/gdisk.html
--- old/gptfdisk-1.0.0/gdisk.html       2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/gdisk.html       2015-10-19 00:35:18.000000000 +0200
@@ -4,7 +4,7 @@
 <HTML><HEAD><TITLE>Man page of GDISK</TITLE>
 </HEAD><BODY>
 <H1>GDISK</H1>
-Section: GPT fdisk Manual (8)<BR>Updated: 1.0.0<BR><A HREF="#index">Index</A>
+Section: GPT fdisk Manual (8)<BR>Updated: 1.0.1<BR><A HREF="#index">Index</A>
 <A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
 
 <A NAME="lbAB">&nbsp;</A>
@@ -247,7 +247,8 @@
 <DD>
 Clear out all partition data. This includes GPT header data,
 all partition definitions, and the protective MBR. The sector alignment
-is reset to the default (2048 sectors, or 1MB).
+is reset to the default (1MB, or 2048 sectors on a disk with 512-byte
+sectors).
 <P>
 <DT><B>p</B>
 
@@ -550,12 +551,13 @@
 physical sectors (such as modern Advanced Format drives), some RAID
 configurations, and many SSD devices, can suffer performance problems if
 partitions are not aligned properly for their internal data structures. On
-new disks, GPT fdisk attempts to align partitions on 2048-sector (1MiB)
-boundaries by default, which optimizes performance for all of these disk
-types. On pre-partitioned disks, GPT fdisk attempts to identify the
-alignment value used on that disk, but will set 8-sector alignment on disks
-larger than 300 GB even if lesser alignment values are detected. In either
-case, it can be changed by using this option.
+new disks, GPT fdisk attempts to align partitions on 1MiB boundaries
+(2048-sectors on disks with 512-byte sectors) by default, which optimizes
+performance for all of these disk types. On pre-partitioned disks, GPT
+fdisk attempts to identify the alignment value used on that disk, but will
+set 8-sector alignment on disks larger than 300 GB even if lesser alignment
+values are detected. In either case, it can be changed by using this
+option.
 <P>
 <DT><B>m</B>
 
@@ -816,6 +818,6 @@
 This document was created by
 <A HREF="/cgi-bin/man/man2html">man2html</A>,
 using the manual pages.<BR>
-Time: 22:50:38 GMT, March 17, 2015
+Time: 22:35:18 GMT, October 18, 2015
 </BODY>
 </HTML>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/gdisk_test.sh 
new/gptfdisk-1.0.1/gdisk_test.sh
--- old/gptfdisk-1.0.0/gdisk_test.sh    2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/gdisk_test.sh    2015-10-19 00:35:18.000000000 +0200
@@ -115,9 +115,23 @@
 w
 Y
 EOF
+
+                       ret=$?
+                       if [ $ret -ne 0 ]
+                       then
+                               pretty_print "FAILED" "gdisk return $ret when 
creating partition table"
+                               exit 1
+                       fi
                ;;
                sgdisk)
                        $SGDISK_BIN $TEMP_DISK -${OPT_CLEAR}
+
+                       ret=$?
+                       if [ $ret -ne 0 ]
+                       then
+                               pretty_print "FAILED" "sgdisk return $ret when 
creating partition table"
+                               exit 1
+                       fi
                ;;
        esac
 
@@ -147,7 +161,7 @@
                ;;
 
                sgdisk)
-                       $SGDISK_BIN $TEMP_DISK -${OPT_NEW} 1 
-${OPT_CHANGE_NAME} 1:"${TEST_PART_DEFAULT_NAME}"
+                       $SGDISK_BIN $TEMP_DISK -${OPT_NEW} 1 
-${OPT_CHANGE_NAME} 1:"${TEST_PART_DEFAULT_NAME}" -${OPT_CHANGE_TYPE} 
1:$TEST_PART_TYPE
                ;;
        esac
 
@@ -311,6 +325,7 @@
                pretty_print "SUCCESS" "GUID of disk has been sucessfully 
changed"
        else
                pretty_print "FAILED" "GUID of disk is the same as the previous 
one"
+               exit 1
        fi
 }
 
@@ -353,7 +368,7 @@
 ###################################
 
 # create a file to simulate a real device
-dd if=/dev/zero of=$TEMP_DISK bs=1024 count=$TEMP_DISK_SIZE
+dd if=/dev/zero of=$TEMP_DISK bs=1024 count=$TEMP_DISK_SIZE > /dev/null 2>&1
 
 if [ -s $TEMP_DISK ]
 then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/gpt.cc new/gptfdisk-1.0.1/gpt.cc
--- old/gptfdisk-1.0.0/gpt.cc   2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/gpt.cc   2015-10-19 00:35:18.000000000 +0200
@@ -748,7 +748,12 @@
               << "'sysctl kern.geom.debugflags=16' at a shell prompt, and 
re-running this\n"
               << "program.\n";
 #endif
-         cout << "\n";
+#if defined (__APPLE__)
+         cout << "You may need to deactivate System Integrity Protection to 
use this program. See\n"
+              << 
"https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11\n";
+              << "for more information.\n";
+#endif
+              cout << "\n";
       } // if
       myDisk.Close(); // Close and re-open read-only in case of bugs
    } else allOK = 0; // if
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/gptcl.cc new/gptfdisk-1.0.1/gptcl.cc
--- old/gptfdisk-1.0.0/gptcl.cc 2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/gptcl.cc 2015-10-19 00:35:18.000000000 +0200
@@ -72,7 +72,8 @@
 
    struct poptOption theOptions[] =
    {
-      {"attributes", 'A', POPT_ARG_STRING, &attributeOperation, 'A', "operate 
on partition attributes", 
"list|[partnum:show|or|nand|xor|=|set|clear|toggle|get[:bitnum|hexbitmask]]"},
+      {"attributes", 'A', POPT_ARG_STRING, &attributeOperation, 'A', "operate 
on partition attributes",
+          
"list|[partnum:show|or|nand|xor|=|set|clear|toggle|get[:bitnum|hexbitmask]]"},
       {"set-alignment", 'a', POPT_ARG_INT, &alignment, 'a', "set sector 
alignment", "value"},
       {"backup", 'b', POPT_ARG_STRING, &backupFile, 'b', "backup GPT to file", 
"file"},
       {"change-name", 'c', POPT_ARG_STRING, &partName, 'c', "change 
partition's name", "partnum:name"},
@@ -306,8 +307,8 @@
                   startSector = FindFirstInLargest();
                   Align(&startSector);
                   endSector = FindLastInFree(startSector);
-                  if (largestPartNum < 0)
-                     largestPartNum = FindFirstFreePart();
+                  if (largestPartNum <= 0)
+                     largestPartNum = FindFirstFreePart() + 1;
                   if (CreatePartition(largestPartNum - 1, startSector, 
endSector)) {
                      saveData = 1;
                   } else {
@@ -404,7 +405,7 @@
                   if (!pretend) {
                      DestroyGPT();
                   } // if
-                  saveNonGPT = 0;
+                  saveNonGPT = 1;
                   saveData = 0;
                   break;
                case 'Z':
@@ -412,7 +413,7 @@
                      DestroyGPT();
                      DestroyMBR();
                   } // if
-                  saveNonGPT = 0;
+                  saveNonGPT = 1;
                   saveData = 0;
                   break;
                default:
@@ -446,7 +447,7 @@
                   if (!pretend) {
                      DestroyGPT();
                   } // if
-                  saveNonGPT = 0;
+                  saveNonGPT = 1;
                   saveData = 0;
                   break;
                case 'Z':
@@ -454,7 +455,7 @@
                      DestroyGPT();
                      DestroyMBR();
                   } // if
-                  saveNonGPT = 0;
+                  saveNonGPT = 1;
                   saveData = 0;
                   break;
             } // switch
@@ -462,7 +463,8 @@
          retval = 2;
       } // if/else loaded OK
       if ((saveData) && (!neverSaveData) && (saveNonGPT) && (!pretend)) {
-         SaveGPTData(1);
+         if (!SaveGPTData(1))
+            retval = 4;
       }
       if (saveData && (!saveNonGPT)) {
          cout << "Non-GPT disk; not saving changes. Use -g to override.\n";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/gptcurses.cc 
new/gptfdisk-1.0.1/gptcurses.cc
--- old/gptfdisk-1.0.0/gptcurses.cc     2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/gptcurses.cc     2015-10-19 00:35:18.000000000 +0200
@@ -332,7 +332,7 @@
           BytesToIeee(partitions[partNum].GetFirstLBA(), blockSize).c_str());
    printw("Last sector: %lld (at %s)\n", partitions[partNum].GetLastLBA(),
           BytesToIeee(partitions[partNum].GetLastLBA(), blockSize).c_str());
-   size = partitions[partNum].GetLastLBA() - partitions[partNum].GetFirstLBA();
+   size = partitions[partNum].GetLastLBA() - partitions[partNum].GetFirstLBA() 
+ 1;
    printw("Partition size: %lld sectors (%s)\n", size, BytesToIeee(size, 
blockSize).c_str());
    printw("Attribute flags: %016x\n", 
partitions[partNum].GetAttributes().GetAttributes());
    #ifdef USE_UTF16
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/parttypes.cc 
new/gptfdisk-1.0.1/parttypes.cc
--- old/gptfdisk-1.0.0/parttypes.cc     2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/parttypes.cc     2015-10-19 00:35:18.000000000 +0200
@@ -2,7 +2,7 @@
 // Class to manage partition type codes -- a slight variant on MBR type
 // codes, GUID type codes, and associated names.
 
-/* This program is copyright (c) 2009-2014 by Roderick W. Smith. It is 
distributed
+/* This program is copyright (c) 2009-2015 by Roderick W. Smith. It is 
distributed
   under the terms of the GNU GPL version 2, as detailed in the COPYING file. */
 
 #define __STDC_LIMIT_MACROS
@@ -97,6 +97,9 @@
    AddType(0x3000, "7412F7D5-A156-4B13-81DC-867174929325", "ONIE boot");
    AddType(0x3001, "D4E6E2CD-4469-46F3-B5CB-1BFF57AFC149", "ONIE config");
 
+   // Plan 9; see http://man.cat-v.org/9front/8/prep
+   AddType(0x3900, "C91818F9-8025-47AF-89D2-F030D7000C2C", "Plan 9");
+
    // PowerPC reference platform boot partition
    AddType(0x4100, "9E1A2D38-C612-4316-AA26-8B49521E5A8B", "PowerPC PReP 
boot");
 
@@ -129,6 +132,7 @@
    AddType(0x8304, "4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709", "Linux x86-64 root 
(/)"); // Linux / on x86-64 (auto-mounted by systemd)
    AddType(0x8305, "B921B045-1DF0-41C3-AF44-4C6F280D3FAE", "Linux ARM64 root 
(/)"); // Linux / on 64-bit ARM (auto-mounted by systemd)
    AddType(0x8306, "3B8F8425-20E0-4F3B-907F-1A25A76F98E8", "Linux /srv"); // 
Linux /srv (auto-mounted by systemd)
+   AddType(0x8307, "69DAD710-2CE4-4E3C-B16C-21A1D49ABED3", "Linux ARM32 root 
(/)"); // Linux / on 32-bit ARM (auto-mounted by systemd)
 
    // Used by Intel Rapid Start technology
    AddType(0x8400, "D3BFE2DE-3DAF-11DF-BA40-E3A556D89593", "Intel Rapid 
Start");
@@ -155,11 +159,7 @@
    AddType(0xa585, "85D5E45C-237C-11E1-B4B3-E89A8F7FC3A7", "Midnight BSD 
Vinum");
 
    // OpenBSD partition type....
-   // Note: MBR type 0xa6 is normally subdivided with a BSD disklabel. It's 
unclear
-   // if that has a GPT equivalent, so I've mapped it to the same GUID as the
-   // FreeBSD diskalbel.
-   AddType(0xa600, "516E7CB4-6ECF-11D6-8FF8-00022D09712B", "OpenBSD 
disklabel", 0);
-   AddType(0xa601, "824CC7A0-36A8-11E3-890A-952519AD3F61", "OpenBSD data");
+   AddType(0xa600, "824CC7A0-36A8-11E3-890A-952519AD3F61", "OpenBSD 
disklabel");
 
    // A MacOS partition type, separated from others by NetBSD partition 
types...
    AddType(0xa800, "55465300-0000-11AA-AA11-00306543ECAC", "Apple UFS"); // 
Mac OS X
@@ -175,7 +175,7 @@
    AddType(0xa906, "49F48DAA-B10E-11DC-B99B-0019D1879648", "NetBSD RAID");
 
    // Mac OS partition types (See also 0xa800, above)....
-   AddType(0xab00, "426F6F74-0000-11AA-AA11-00306543ECAC", "Apple boot");
+   AddType(0xab00, "426F6F74-0000-11AA-AA11-00306543ECAC", "Recovery HD");
    AddType(0xaf00, "48465300-0000-11AA-AA11-00306543ECAC", "Apple HFS/HFS+");
    AddType(0xaf01, "52414944-0000-11AA-AA11-00306543ECAC", "Apple RAID");
    AddType(0xaf02, "52414944-5F4F-11AA-AA11-00306543ECAC", "Apple RAID 
offline");
@@ -183,6 +183,9 @@
    AddType(0xaf04, "5265636F-7665-11AA-AA11-00306543ECAC", "AppleTV recovery");
    AddType(0xaf05, "53746F72-6167-11AA-AA11-00306543ECAC", "Apple Core 
Storage");
 
+   // Acronis Secure Zone
+   AddType(0xbc00, "0311FC50-01CA-4725-AD77-9ADBB20ACE98", "Acronis Secure 
Zone");
+
    // Solaris partition types (one of which is shared with MacOS)
    AddType(0xbe00, "6A82CB45-1DD2-11B2-99A6-080020736631", "Solaris boot");
    AddType(0xbf00, "6A85CF4D-1DD2-11B2-99A6-080020736631", "Solaris root");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/sgdisk.8 new/gptfdisk-1.0.1/sgdisk.8
--- old/gptfdisk-1.0.0/sgdisk.8 2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/sgdisk.8 2015-10-19 00:35:18.000000000 +0200
@@ -1,6 +1,6 @@
-.\" Copyright 2011-2013 Roderick W. Smith ([email protected])
+.\" Copyright 2011-2015 Roderick W. Smith ([email protected])
 .\" May be distributed under the GNU General Public License
-.TH "SGDISK" "8" "1.0.0" "Roderick W. Smith" "GPT fdisk Manual"
+.TH "SGDISK" "8" "1.0.1" "Roderick W. Smith" "GPT fdisk Manual"
 .SH "NAME"
 sgdisk \- Command\-line GUID partition table (GPT) manipulator for Linux and 
Unix
 .SH "SYNOPSIS"
@@ -148,11 +148,11 @@
 .TP 
 .B \-a, \-\-set\-alignment=value
 Set the sector alignment multiple. GPT fdisk aligns the start of partitions
-to sectors that are multiples of this value, which defaults to 2048 on
-freshly formatted disks. This alignment value is necessary to obtain optimum
-performance with Western Digital Advanced Format and similar drives with larger
-physical than logical sector sizes, with some types of RAID arrays, and
-with SSD devices.
+to sectors that are multiples of this value, which defaults to 1MiB (2048
+on disks with 512-byte sectors) on freshly formatted disks. This alignment
+value is necessary to obtain optimum performance with Western Digital
+Advanced Format and similar drives with larger physical than logical sector
+sizes, with some types of RAID arrays, and with SSD devices.
 
 .TP
 .B \-A, 
\-\-attributes=list|[partnum:show|or|nand|xor|=|set|clear|toggle|get[:bitnum|hexbitmask]]
@@ -335,10 +335,7 @@
 .TP
 .B \-N, \-\-largest\-new=num
 Create a new partition that fills the largest available block of space on
-the disk. Note that if used on a completely blank disk, this is likely to
-result in a sector-moved warning, since the first available sector
-(normally 34) doesn't fall on a 2048-sector boundary (the default for
-alignment). You can use the \fI\-a\fR (\fI\-\-set\-alignment\fR) option to
+the disk. You can use the \fI\-a\fR (\fI\-\-set\-alignment\fR) option to
 adjust the alignment, if desired. A num value of 0 causes the program to
 use the first available partition number.
 
@@ -483,7 +480,8 @@
 
 .TP 
 .B 3
-Non\-GPT disk detected and no \fI\-g\fR option
+Non\-GPT disk detected and no \fI\-g\fR option, but operation requires a
+write action
 
 .TP 
 .B 4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/sgdisk.html 
new/gptfdisk-1.0.1/sgdisk.html
--- old/gptfdisk-1.0.0/sgdisk.html      2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/sgdisk.html      2015-10-19 00:35:18.000000000 +0200
@@ -4,7 +4,7 @@
 <HTML><HEAD><TITLE>Man page of SGDISK</TITLE>
 </HEAD><BODY>
 <H1>SGDISK</H1>
-Section: GPT fdisk Manual (8)<BR>Updated: 1.0.0<BR><A HREF="#index">Index</A>
+Section: GPT fdisk Manual (8)<BR>Updated: 1.0.1<BR><A HREF="#index">Index</A>
 <A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
 
 <A NAME="lbAB">&nbsp;</A>
@@ -173,11 +173,11 @@
 
 <DD>
 Set the sector alignment multiple. GPT fdisk aligns the start of partitions
-to sectors that are multiples of this value, which defaults to 2048 on
-freshly formatted disks. This alignment value is necessary to obtain optimum
-performance with Western Digital Advanced Format and similar drives with larger
-physical than logical sector sizes, with some types of RAID arrays, and
-with SSD devices.
+to sectors that are multiples of this value, which defaults to 1MiB (2048
+on disks with 512-byte sectors) on freshly formatted disks. This alignment
+value is necessary to obtain optimum performance with Western Digital
+Advanced Format and similar drives with larger physical than logical sector
+sizes, with some types of RAID arrays, and with SSD devices.
 <P>
 <DT><B>-A, 
--attributes=list|[partnum:show|or|nand|xor|=|set|clear|toggle|get[:bitnum|hexbitmask]]</B>
 
@@ -379,10 +379,7 @@
 
 <DD>
 Create a new partition that fills the largest available block of space on
-the disk. Note that if used on a completely blank disk, this is likely to
-result in a sector-moved warning, since the first available sector
-(normally 34) doesn't fall on a 2048-sector boundary (the default for
-alignment). You can use the <I>-a</I> (<I>--set-alignment</I>) option to
+the disk. You can use the <I>-a</I> (<I>--set-alignment</I>) option to
 adjust the alignment, if desired. A num value of 0 causes the program to
 use the first available partition number.
 <P>
@@ -552,7 +549,8 @@
 <DT><B>3</B>
 
 <DD>
-Non-GPT disk detected and no <I>-g</I> option
+Non-GPT disk detected and no <I>-g</I> option, but operation requires a
+write action
 <P>
 <DT><B>4</B>
 
@@ -721,6 +719,6 @@
 This document was created by
 <A HREF="/cgi-bin/man/man2html">man2html</A>,
 using the manual pages.<BR>
-Time: 22:50:38 GMT, March 17, 2015
+Time: 22:35:18 GMT, October 18, 2015
 </BODY>
 </HTML>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/support.cc 
new/gptfdisk-1.0.1/support.cc
--- old/gptfdisk-1.0.0/support.cc       2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/support.cc       2015-10-19 00:35:18.000000000 +0200
@@ -39,9 +39,16 @@
 string ReadString(void) {
    string inString;
    char efiString[256];
+   int stringLength;
 
-   fgets(efiString, 255, stdin);
-   inString = efiString;
+   if (fgets(efiString, 255, stdin) != NULL) {
+      stringLength = strlen(efiString);
+      if ((stringLength > 0) && (efiString[stringLength - 1] == '\n'))
+          efiString[stringLength - 1] = '\0';
+      inString = efiString;
+   } else {
+      inString = "";
+   }
    return inString;
 } // ReadString()
 #else
@@ -144,7 +151,7 @@
 uint64_t IeeeToInt(string inValue, uint64_t sSize, uint64_t low, uint64_t 
high, uint64_t def) {
    uint64_t response = def, bytesPerUnit = 1, mult = 1, divide = 1;
    size_t foundAt = 0;
-   char suffix, plusFlag = ' ';
+   char suffix = ' ', plusFlag = ' ';
    string suffixes = "KMGTPE";
    int badInput = 0; // flag bad input; once this goes to 1, other values are 
irrelevant
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gptfdisk-1.0.0/support.h new/gptfdisk-1.0.1/support.h
--- old/gptfdisk-1.0.0/support.h        2015-03-17 23:50:38.000000000 +0100
+++ new/gptfdisk-1.0.1/support.h        2015-10-19 00:35:18.000000000 +0200
@@ -8,7 +8,7 @@
 #ifndef __GPTSUPPORT
 #define __GPTSUPPORT
 
-#define GPTFDISK_VERSION "1.0.0"
+#define GPTFDISK_VERSION "1.0.1"
 
 #if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined 
(__APPLE__)
 // Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no 
lseek64


Reply via email to